A total solar eclipse occur when the Moon passes in front of the Sun and casts its shadow on the Earth.