The Moon is on average, about 240,000 miles from Earth, so it's a tricky journey.
The first men on the Moon were part of the Apollo 11 mission.
They blasted off aboard a Saturn V rocket, which propelled them out of Earth's gravity.
The section of the spacecraft carrying the astronauts separated from the rocket, and took them to the Moon.
Once in orbit around the Moon, the lunar module, called Eagle, separated from the command module, called Columbia. Columbia stayed in orbit around the Moon.
Eagle then descended to the surface, touching down with just 25 seconds of fuel to spare!