Define how solar eclipse occurs

A solar eclipse occurs when the Moon passes between the Earth and the Sun, blocking the Sun's light and casting a shadow on the Earth. This can only happen during a new Moon when the Sun, Moon, and Earth align in a straight line. There are three types of solar eclipses: total, partial, and annular, depending on the alignment and the visibility of the Sun during the event.