A lunar eclipse occurs when the Moon passes through the Earth's shadow. There are three types of lunar eclipses - total, partial, and penumbral - depending on how much of the Moon passes through the Earth's umbra or penumbra. During a total lunar eclipse, the Moon takes on a red color due to refraction of sunlight through the Earth's atmosphere. A solar eclipse occurs when the Moon passes between the Earth and the Sun, casting its shadow on parts of Earth. There are also three types of solar eclipses - total, partial, and annular - depending on the Moon's position and alignment with the Earth and Sun.