Answer
Magnetic fields are responsible for the Zeeman effect, which is the splitting of spectral lines into multiple components when an atom or molecule is subjected to a magnetic field. This splitting occurs because the magnetic field interacts with the magnetic moments of the electrons in the atom or molecule, causing them to align with the field.