He was a quiet, self-described nerdy engineer who became a global hero when as a steely-nerved US pilot he made his "one giant leap for mankind" with a small step on to the moon.

In those first few moments on the moon, during the climax of a heated space race with the then-Soviet Union, Neil Armstrong stopped in what he called "a tender moment" and left a patch to commemorate Nasa astronauts and Soviet cosmonauts who had died in action.

"It was special and memorable, but it was only instantaneous because there was work to do," Armstrong told an Australian television interviewer this year.

"The sights were simply magnificent, beyond any visual experience that I had ever been exposed to," Armstrong once said.

The moonwalk marked America's victory in the Cold War space race that began October 4 1957, with the launch of the Soviet Union's Sputnik 1, a satellite that sent shock waves around the world.

Although he had been a Navy fighter pilot, a test pilot for Nasa's forerunner and an astronaut, Armstrong never allowed himself to be caught up in the celebrity and glamour of the space programme.

"I am, and ever will be, a white socks, pocket protector, nerdy engineer," he said in February 2000 in one of his rare public appearances. "And I take a substantial amount of pride in the accomplishments of my profession."

A man who kept away from cameras, Armstrong went public in 2010 with his concerns about President Barack Obama's space policy that shifted attention away from a return to the moon and emphasised private companies developing spaceships. He testified before Congress, and in an email to the Associated Press he said he had "substantial reservations."

Armstrong's modesty and self-effacing manner never faded. When he appeared in Dayton, Ohio, in 2003 to help celebrate the 100th anniversary of powered flight, he bounded onto a stage before 10,000 people. But he spoke for only a few seconds, did not mention the moon and quickly ducked out of the spotlight.

He later joined former astronaut and Senator John Glenn to lay wreaths on the graves of plane inventors Wilbur and Orville Wright. Mr Glenn introduced Armstrong and noted it was 34 years to the day that Armstrong had walked on the moon.

"Thank you, John. Thirty-four years?" Armstrong quipped, as if he hadn't given it a thought. At another joint appearance, the two embraced and Mr Glenn commented: "To this day, he's the one person on Earth I'm truly, truly envious of."

However, in 1972, he made a special trip to Langholm in Dumfries-shire, having traced his ancestors to the town, a stronghold of the Clan Armstrong.

The astronaut waved to hundreds of well-wishers while the Langholm town band played the Stars and Stripes Forever march.

He then attended a special ceremony at Langholm Parish Church, where the hero was presented with the Armstrong coat of arms and made the first freeman of the town.

Armstrong declared the town his home, adding: “My pleasure is not only that this is the land of Johnnie Armstrong (his forebear), rather that my pleasure is in knowing that this is my home town and in the genuine feeling that I have among these hills among these people.”

In the years afterward, Armstrong retreated to the quiet of the classroom and his Ohio farm. Aldrin said in his book Men From Earth that Armstrong was one of the quietest, most private men he had ever met.

In the Australian interview, Armstrong acknowledged that "now and then I miss the excitement about being in the cockpit of an airplane and doing new things".

At the time of the flight's 40th anniversary, Armstrong again was low-key, telling a gathering that the space race was "the ultimate peaceful competition: USA versus USSR. It did allow both sides to take the high road, with the objectives of science and learning and exploration."

Mr Glenn, who went through jungle training in Panama with Armstrong as part of the astronaut programme, described him as "exceptionally brilliant" with technical matters but "rather retiring, doesn't like to be thrust into the limelight much".

Derek Elliott, curator of the Smithsonian Institution's US Air and Space Museum from 1982 to 1992, said the moonwalk probably marked the high point of space exploration.

The manned lunar landing re-established US pre-eminence in science and technology, Mr Elliott said.

"The fact that we were able to see it and be a part of it means that we are in our own way witnesses to history," he said.

The 1969 landing met an audacious deadline that President John F Kennedy had set in May 1961, shortly after Alan Shepard became the first American in space with a 15-minute suborbital flight. Soviet cosmonaut Yuri Gagarin had orbited the Earth and beaten the US into space the previous month.

"I believe this nation should commit itself to achieving the goal, before the decade is out, of landing a man on the moon and returning him safely to Earth," the president had said. "No single space project in this period will be more impressive to mankind, or more important to the long-range exploration of space; and none will be so difficult or expensive to accomplish."

The end-of-decade goal was met with more than five months to spare. "Houston: Tranquility Base here," Armstrong radioed after the spacecraft settled onto the moon. "The Eagle has landed."

"Roger, Tranquility," the Houston staffer radioed back. "We copy you on the ground. You've got a bunch of guys about to turn blue. We're breathing again. Thanks a lot."

The third astronaut on the mission, Michael Collins, circled the moon in the mother ship Columbia while Armstrong and Aldrin went to the moon's surface.

In all, 12 American astronauts walked on the moon between 1969 and the last moon mission in 1972. For Americans, reaching the moon provided uplift and respite from the Vietnam War. The landing occurred as organisers were preparing for Woodstock, the legendary rock festival on a farm in New York.

Armstrong was born on August 5 1930, on a farm in Ohio. He took his first plane ride at the age of six and developed a fascination with aviation that prompted him to build model planes and conduct experiments in a homemade wind tunnel.

As a boy, he worked at a pharmacy and took flying lessons. He was licensed to fly at 16, before he got his driver's licence.

Armstrong enrolled in Purdue University to study aeronautical engineering but was called to duty with the US Navy in 1949 and flew 78 combat missions in Korea. After the war, Armstrong finished his degree from Purdue and later earned a master's degree in aerospace engineering from the University of Southern California.

He became a test pilot with what evolved into the National Aeronautics and Space Administration, flying more than 200 kinds of aircraft from gliders to jets.

Armstrong was accepted into Nasa's second astronaut class in 1962 and commanded the Gemini 8 mission in 1966. After the first space docking, he brought the capsule back in an emergency landing in the Pacific Ocean when a wildly firing thruster kicked it out of orbit.

Armstrong was back-up commander for the historic Apollo 8 mission at Christmas in 1968. In that flight, Commander Frank Borman, and Jim Lovell and Bill Anders circled the moon 10 times, and paving the way for the lunar landing seven months later.

Aldrin said he and Armstrong were not prone to free exchanges of sentiment. "But there was that moment on the moon, a brief moment, in which we sort of looked at each other and slapped each other on the shoulder ... and said, 'We made it. Good show,' or something like that," Aldrin said.

An estimated 600 million people - a fifth of the world's population - watched and listened to the landing, the largest audience for any single event in history. Parents huddled with their children in front of the family television, mesmerised.

Armstrong, Aldrin and Collins were given ticker tape parades in New York, Chicago and Los Angeles and later made a 22-nation world tour. A homecoming in Wapakoneta drew 50,000 people to the city of 9,000.

In 1970, Armstrong was appointed deputy associate administrator for aeronautics at Nasa but left the following year to teach aerospace engineering at the University of Cincinnati.

He remained there until 1979 and during that time bought a farm, where he raised cattle and corn. He stayed out of public view, accepting few requests for interviews or speeches.

"He didn't give interviews, but he wasn't a strange person or hard to talk to," said Ron Huston, a colleague at the University of Cincinnati. "He just didn't like being a novelty."

Those who knew him said he enjoyed golfing with friends and frequently ate lunch at the same restaurant in town. Armstrong married Carol Knight in 1999. He had two adult sons from a previous marriage.

In February 2000, when he agreed to announce the top 20 engineering achievements of the 20th century as voted by the National Academy of Engineering, Armstrong said there was one disappointment relating to his moonwalk.

"I can honestly say - and it's a big surprise to me - that I have never had a dream about being on the moon," he said.