An ophthalmologic apparatus includes an illumination projection unit configured to project an illumination light onto a fundus of a subjects eye, an index projection unit configured to project an index onto the subjects eye, an image capturing unit configured to capture a fundus image including an index image based on light returning from the subjects eye, a focusing unit configured to focus the light returning from the subjects eye onto the photographic unit, a detection unit configured to detect a position of the index image in the fundus image, a determination unit configured to determine the area in the fundus image which does not include the index image based on results detected by the detection unit, and a control unit configured to control the focusing unit based on contrast of the area determined by the determination unit.