Astronaut Thomas P Stafford, who commanded a dress rehearsal flight for the 1969 moon landing and the first US-Soviet space linkup, has died. He was 93.

General Stafford, a retired US air force three-star general, took part in four space missions. Before Apollo 10, he flew on two Gemini flights, including the first rendezvous of two US capsules in orbit.

He died in hospital near his Space Coast Florida home, said Max Ary, director of the Stafford Air & Space Museum in Weatherford, Oklahoma.

Gen Stafford was one of 24 people who flew to the moon, but he did not land on it. Only seven of them are still alive.

“Today General Tom Stafford went to the eternal heavens which he so courageously explored as a Gemini and Apollo astronaut as well as a peacemaker in Apollo Soyuz,” Nasa administrator Bill Nelson said on X, formerly Twitter. “Those of us privileged to know him are very sad but grateful we knew a giant.”

Obit-Stafford
Astronaut Thomas Stafford in 1965 (Nasa via AP)

After he put away his flight suit, Gen Stafford was consulted by Nasa when it sought independent advice on everything from human Mars missions to safety issues to returning to flight after the 2003 space shuttle Columbia accident.

He chaired an oversight group that looked into how to fix the then-flawed Hubble Space Telescope, earning a Nasa public service award.

“Tom was involved in so many things that most people were not aware of, such as being known as the ‘Father of Stealth’,” Mr Ary said in an email. Gen Stafford was in charge of the famous “Area 51” desert base that was the site of many UFO theories, but the home of testing of Air Force stealth technologies.

The Apollo 10 mission in May 1969 set the stage for Apollo 11’s historic mission two months later.

Gen Stafford and Gene Cernan took the lunar lander nicknamed Snoopy within nine miles (14 kilometers) of the moon’s surface. Astronaut John Young stayed behind in the main spaceship dubbed Charlie Brown.

“The most impressive sight, I think, that really changed your view of things is when you first see Earth,” Gen Stafford recalled in a 1997 oral history, talking about the view from lunar orbit.

Then came the moon’s far side: “The Earth disappears. There’s this big black void.”

Apollo 10’s return to Earth set the world’s record for fastest speed by a crewed vehicle at 24,791 mph (39,897 kph).

After the moon landings ended, Nasa and the Soviet Union decided on a joint docking mission and Gen Stafford, a one-star general at the time, was chosen to command the American side.

Obit-Stafford
Then vice president Spiro T Agnew, centre, Apollo 10 Commander Tom Stafford, left, and Al Siepert, deputy director of the Kennedy Space Centre, stand together at Cape Kennedy after watching the lift-off of the Apollo 11 flight carrying the first men to the moon, on July 16, 1969 (AP)

It meant intensive language training, being followed by the KGB while in the Soviet Union, and lifelong friendships with cosmonauts. The two teams of space travellers even went to Disney World and rode Space Mountain together before going into orbit and joining ships.

“We have capture,” Gen radioed in Russian as the Apollo and Soyuz spacecraft hooked up. His Russian counterpart, Alexei Leonov, responded in English: “Well done, Tom, it was a good show. I vote for you.”

The 1975 mission included two days during which the five men worked together on experiments. After, the two teams toured the world together, meeting then-US president Gerald Ford and Soviet leader Leonid Brezhnev.

“It helped prove to the rest of the world that two completely opposite political systems could work together,” Gen Stafford recalled at a 30th anniversary gathering in 2005.

The two crews became so close that years later Leonov arranged for Gen Stafford to be able to adopt two Russian boys when Gen Stafford was in his 70s.

“We are too old to adopt, but they were too old to be adopted,” Gen Stafford told The Oklahoman in 2004. “They just added so much meaning to our life, and just because you’re retiring doesn’t mean you don’t have anything left to give.”

Later, Gen Stafford was a central part of discussions in the 1990s that brought Russia into the partnership building and operating the International Space Station.

Growing up in Weatherford, Oklahoma, Gen Stafford said he would look up and see giant DC-3 airplanes fly overhead on early transcontinental routes.

“I wanted to fly since I was five or six years old seeing those airplanes,” he told Nasa historians.

Gen Stafford went to the US Naval Academy where he graduated in the top 1% of his class and flew in the backseat of some planes and loved it.

He volunteered for the Air Force and had hoped to fly combat in the Korean War. But by the time he got his wings, the war ended. He went to the Air Force’s experimental test pilot school, graduated first in his class there and stayed on as an instructor.

In 1962, Nasa selected Gen Stafford for its second set of astronauts, which included Neil Armstrong, Frank Borman and Pete Conrad.

Gen Stafford was assigned along with Wally Schirra to Gemini 6. Their original mission was to rendezvous with an empty spaceship. But their 1965 launch was scrubbed when the spaceship exploded soon after liftoff. Nasa improvised and in December, Gemini 6 rendezvoused with but did not dock with two astronauts aboard Gemini 7.

Obit-Stafford
Russian cosmonaut Alexei Leonov, left, and Thomas Stafford, participants of the Apollo-Soyuz space flight, the first international space mission, speaking to the media in Moscow in 2010 (Alexander Zemlianichenko/file/AP)

In all, Gen Stafford logged 507 hours in space and flew four different types of spacecraft and 127 types of aircraft and helicopters.

After the Apollo-Soyuz mission, Gen Stafford returned to the Air Force and worked in research and commanded the Air Force Flight Test Centre before retiring in 1979 as a three-star general.

Gen Stafford’s Air Force duties not only had him run the military’s top flight school and experimental plane testing base, but he was commanding general of Area 51. A biography said that while Gen Stafford was in charge of Area 51 and later as the development and acquisition chief at the Pentagon he “wrote the specs and established the program that led to the development of the F-117 Stealth Fighter, and later, the B-2 Stealth Bomber”.

Gen Stafford became an executive for an Oklahoma-based transportation company and later moved to Florida, near Cape Canaveral.

He is survived by his wife, Linda, two sons, two daughters and two stepchildren, according to the museum.