An atomic oscillator includes a base, an atomic cell unit that is disposed on the base, a lid that constitutes an internal space accommodating the atomic cell unit together with the base, and a getter material that is disposed on the base with a gap with respect to the base in the internal space.