An ophthalmic imaging apparatus performs imaging to produce a tomographic image of a fundus of an examined eye based on interference light obtained by combining measurement light and reference light, determines whether aliasing has occurred in the tomographic image, when it is determined that the aliasing has occurred, moves a position in which an optical path length of the measurement light and an optical path length of the reference light match from a retina side to a choroid side of the examined eye, and generates a fundus image based on the tomographic image that has been produced through imaging in a state where the position has been moved to the choroid side.