A fundus imaging apparatus selects a focal position detection method in accordance with whether a diopter correction lens is inserted in an optical path of an imaging optical system that includes an imaging unit and detects a focal position based on a signal from the imaging unit according to the selected focal position detection method.