A solar eclipse occurs when the moon passes between the sun and earth, casting its shadow on a small area of the earth. The moon's shadow allows certain regions on earth to experience a total solar eclipse by blocking the sun's light, while other areas see only a partial eclipse or no eclipse at all.