A solar eclipse occurs when the Moon passes between the Earth and the Sun, blocking all or part of the Sun's light. This alignment can cause a shadow to fall on parts of the Earth, creating various types of eclipses such as total, partial, and annular.