Atoms can make transitions between the orbits allowed by quantum mechanics by absorbing or emitting exactly the energy difference between the orbits. The following figure shows an atomic excitation cause by absorption of a photon and an atomic de-excitation caused by emission of a photon.