He measured Earth's shadow on the Moon during a lunar eclipse.
By comparing the size of the Earth with the size of the shadow,
he found the ratio between the Earth and the distance to the Moon.
Using the ratio, Hipparchus calculated the distance to the Moon.