Provided is an ophthalmologic apparatus having an automatic focusing function and capable of imaging a subject in focus, including: a light intensity control unit for controlling a light intensity of light guided to an object to be inspected an imaging unit for imaging the object to be inspected which is illuminated by the light a focus state detection unit for detecting a focus state of the imaging unit with respect to the object to be inspected based on an output from the imaging unit a focus lens drive unit for driving a focus lens based on the focus state detected by the focus state detection unit and a drive control unit for controlling the focus lens drive unit to operate in accordance with timing when the light intensity of the light is changed by the light intensity control unit.