Diabetic retinopathy has been revealed as the most common cause of blindness among people of working age in developed countries. However, loss of vision could be prevented by an early detection of the disease and, therefore, by a regular screening program to detect retinopathy. Due to its characteristics, the digital color fundus photographs have been the easiest way to analyze the eye fundus. An important prerequisite for automation is the segmentation of the main anatomical features in the image, particularly the optic disc. Currently, there are many works reported in the literature with the purpose of detecting and segmenting this anatomical structure. Though, none of them performs as needed, especially when dealing with images presenting pathologies and a great variability. Ant colony optimization (ACO) is an optimization algorithm inspired by the foraging behavior of some ant species that has been applied in image processing with different purposes. In this paper, this algorithm preceded by anisotropic diffusion is used for optic disc detection in color fundus images. Experimental results demonstrate the good performance of the proposed approach as the optic disc was detected in most of all the images used, even in the images with great variability.