Northern lights occur when a solar flare interacts with Earth's atmosphere.