Gamma rays are emitted during radioactive decay as nuclei transition to lower energy states. They are produced through three main processes: 1. Alpha and beta decay leave nuclei in excited states, which then emit gamma rays as they fall to lower energy levels. 2. Gamma decay directly involves gamma ray emission as excited nuclei transition to the ground state. 3. Induced gamma emission occurs when absorption of photons or neutrons excites a nucleus, which then emits gamma rays as it decays to lower energy states.