Solar eclipses occur when the sun, moon and Earth align in space.