Alexei Leonov, the first person to walk in space, has been laid to rest at a memorial cemetery outside the Russian capital of Moscow.

The legendary cosmonaut, who died Friday at 85, was buried Tuesday in a lavish ceremony, attended by hundreds of well-wishers and other celebrated cosmonauts.

Leonov staked his place in history on March 18, 1965, when he exited his space capsule to spend 12 minutes in outer space.

FILE - In this Friday, June 14, 2013 file photo, Russian cosmonaut Alexei Leonov, who made the first spacewalk in 1965, attends a meeting with Russian President Vladimir Putin in the Novo-Ogaryovo residence outside Moscow, Russia. Alexei Leonov, the first human to walk in space, died in Moscow on Friday, Oct. 11, 2019. He was 85 (Mikhail Klimentyev, Sputnik, Kremlin Pool Photo via AP, File)

FILE - In this Friday, June 14, 2013 file photo, Russian cosmonaut Alexei Leonov, who made the first spacewalk in 1965, attends a meeting with Russian President Vladimir Putin in the Novo-Ogaryovo residence outside Moscow, Russia. Alexei Leonov, the first human to walk in space, died in Moscow on Friday, Oct. 11, 2019. He was 85 (Mikhail Klimentyev, Sputnik, Kremlin Pool Photo via AP, File)

Ten years later, he was the commander of the Soviet section at the Apollo-Soyuz flight, the first joint Soviet-U.S. space mission.

Tom Stafford, commander of the U.S. section in the Apollo-Soyuz mission, came to the cemetery Tuesday to pay his last respects to Leonov, calling him a "colleague and friend."

FILE - In this March 26, 1965 file photo, Cosmonaut Alexei Leonov, who stepped into space from the Voskod-2 spaceship, speaks in Moscow, Russia. Alexei Leonov, the first human to walk in space, died in Moscow on Friday, Oct. 11, 2019. He was 85. (AP Photo, File)

FILE - In this March 26, 1965 file photo, Cosmonaut Alexei Leonov, who stepped into space from the Voskod-2 spaceship, speaks in Moscow, Russia. Alexei Leonov, the first human to walk in space, died in Moscow on Friday, Oct. 11, 2019. He was 85. (AP Photo, File)

FILE - In this Friday, June 14, 2013 file photo, Russian cosmonaut Alexei Leonov, who made the first spacewalk in 1965, right, and Russian President Vladimir Putin pose for a photo in the Novo-Ogaryovo residence outside Moscow, Russia. Alexei Leonov, the first human to walk in space, died in Moscow on Friday, Oct. 11, 2019. He was 85. (Mikhail Klimentyev, Sputnik, Kremlin Pool Photo via AP, File)

FILE - In this Friday, June 14, 2013 file photo, Russian cosmonaut Alexei Leonov, who made the first spacewalk in 1965, right, and Russian President Vladimir Putin pose for a photo in the Novo-Ogaryovo residence outside Moscow, Russia. Alexei Leonov, the first human to walk in space, died in Moscow on Friday, Oct. 11, 2019. He was 85. (Mikhail Klimentyev, Sputnik, Kremlin Pool Photo via AP, File)