During a total lunar eclipse, the Earth lies directly between the sun and the moon, causing the Earth to cast its shadow on the moon.
When earth’s shadow falls on the moon, the shadow causes a lunar eclipse.