An imaging apparatus includes a lens, a moving mechanism, an imaging device, and a controller. The moving mechanism moves the lens in the optical axis direction. The controller drives, in response to an input of an imaging instruction, the moving mechanism to move the lens to a plurality of imaging positions from one of infinity and close-up ends to the other and drives the imaging device when the lens is positioned at each of the imaging positions. Since the interior of an oral cavity, for example, is difficult to capture, the focus can hardly be adjusted on it with high accuracy when an autofocus mechanism is used. However, since the lens is moved to the plurality of imaging positions in the optical axis direction in response to each input of the imaging instruction to obtain captured images, an in-focus image can be reliably obtained.