In an imaging device for capturing an image by applying illuminating light emitted from a light source to a part to be observed through a light exit window and receiving light coming from the part to be observed when the illuminating light is applied, a light exit window cleaning unit discharges a liquid toward the light exit window to clean the light exit window in response to an instruction to start application of the illuminating light.