When a massive star explodes as a supernova, it produces a shock wave that can accelerate particles to very high energies. These particles can produce gamma rays through various mechanisms, including the interaction with magnetic fields or the ambient gas. Studying the gamma-ray emission from supernova remnants can help us understand the origin of cosmic rays, which are high-energy particles that permeate the universe.