An imaging device includes: an image sensor; an imaging optical device; a fixed mask; and a movable mask. The imaging optical device forms an image of a subject on the image sensor. The fixed mask includes first to third openings that divide a pupil of the imaging optical device, a first filter transmitting light in a first wavelength band, a second filter transmitting light in a second wavelength band different from the first wavelength band. The movable mask includes a light shielding section and fourth to sixth openings that are provided on the light shielding section and correspond to the first to the third openings, and is movable relative to the imaging optical device. The first filter is provided to the first opening. The second filter is provided to the second opening. The third opening is provided to an optical axis of the imaging optical device.