The Moon’s diameter is 400 times smaller than the Sun’s. However, the Sun is 400 times further away. This is why we can have both solar and lunar total eclipses.