The first manned Apollo mission, Apollo 1, ended in tragedy in 1967. All three crew members died in a fire inside their capsule during a pre-launch test on the launch pad.
NASA said design changes after the accident made the Apollo spacecraft safer for journeys to the moon.
By July 1969, NASA astronauts had flown to the moon's orbit twice, and the crew of Apollo 11 was ready to land on the lunar surface.
The first two crewed missions to the moon flew astronauts into the moon's orbit (Apollo 8) and 50,000 feet above the lunar surface (Apollo 10.)
The Apollo team practiced their moon-landing plan on Earth first, flying this Lunar Landing Research Vehicle for the first time in 1964.
The flights didn't always go smoothly: Commander Neil Armstrong was at the helm of an LLRV in 1968 when he had to eject himself seconds before it crashed.
Armstrong also practiced what it would be like to step foot on the moon and how to get back into the lunar landing module the astronauts used, called the Eagle.
In 1962, President Kennedy said the US was spending 50 cents per week "for every man, woman, and child in the United States" on the space program. It took another seven years after that statement for humans to land on the moon.
On the morning of July 16, 1969, the 363-foot-tall Saturn V rocket launched from Complex 39 at the Kennedy Space Center in Florida.
When the astronauts blasted off, people camped out on beaches and roads nearby to see the rocket in flight.
Former President Lyndon B. Johnson and sitting Vice President Spiro Agnew were there to see the three astronauts off.
Finally, command pilot Michael Collins lined up the hatches of the Columbia spacecraft and Eagle moon lander so that Aldrin and Armstrong could head down to the moon.
Source: Smithsonian
Things got a little chaotic during the landing when the landing guidance computer overloaded. But the astronauts were given the go-ahead and landed on the moon safely. Aldrin snapped this shot of his crewmate Armstrong.
Source: Smithsonian
At 10:56 p.m. ET on July 20, Armstrong stuck his boot into the soft gray regolith dust of the moon and uttered the famous words: "That’s one small step for man, one giant leap for mankind."
Armstrong described the moon's surface as "fine and powdery."
"I can pick it up loosely with my toe," he said, mentioning that the regolith was kind of messy and adhered "like powdered charcoal to the sole and sides of my boots."
Minutes later, Aldrin got out of the Eagle lander and joined Armstrong on the moon, joking that he was "making sure not to lock it on my way out."
Source: NASA
The gear included a Swiss aluminum-foil panel for monitoring solar wind, four seismometers, and a reflector toward which scientists on Earth could shoot laser beams.
Source: Smithsonian
The moon lander wasn't built to fly back to Earth. Instead, the Eagle rocketed Aldrin and Armstrong back to the command module Columbia, where Collins was waiting for them in orbit. The three caught this glimpse of the moon as they headed home.
The Eagle lander was then left in lunar orbit after the astronauts hopped back in their capsule.
"It is assumed that it crashed into the lunar surface sometime within the following one to four months," NASA said.
They were met by a US Navy underwater demolition team swimmer. The four then waited for a helicopter to get them.
Because scientists weren't sure what kind of "lunar contagions" the astronauts might have brought back, the three were quarantined for 21 days. But President Richard Nixon stopped by to say hi.
Source: Smithsonian
On August 13, the day the astronauts were allowed back outside, they were showered with ticker tape in New York City.
The New York Times said the confetti was "so dense that the astronauts could hardly see."
Source: CBS
The US spent two and a half more years shuttling men to the moon. The last Apollo flight ended in December 1972. Since then, NASA has explored other planets, like Mars, using rovers and cameras, but not with any human crews.
For the past two decades, NASA has also invested $100 billion into the International Space Station.
Source: Business Insider
But today many astronauts argue that the main reasons no humans have touched the moon (or any other planet) since 1972 aren't scientific or technical challenges. Instead, it's due a lack of cash and political waffling.
"American leadership is inspiring the world by consistently doing what no other nation is capable of doing," Aldrin told Congress in 2015. "We demonstrated that for a brief time 45 years ago. I do not believe we have done it since."