NASA last landed on Mars in 2012 with the Curiosity rover.

A NASA spacecraft designed to burrow beneath the surface of Mars landed on the red planet Monday after a six-month, 300 million-mile (482 million-kilometre) journey and a perilous, six-minute descent through the rose-hued atmosphere.

Flight controllers at NASA’s Jet Propulsion Laboratory in Pasadena, California, leaped out of their seats and erupted in screams, applause and laughter as the news came in.

“Touchdown confirmed!” a flight controller announced.

The three-legged InSight spacecraft reached the surface after being slowed by a parachute and braking engines, the space agency said. Updates were coming in via radio signals that take more than eight minutes to cross the nearly 100 million miles (160 million kilometres) between Mars and Earth.

It was NASA’s ninth attempt to land at Mars since the 1976 Viking probes. All but one of the previous U.S. touchdowns were successful.

NASA last landed on Mars in 2012 with the Curiosity rover.

Viewings were held coast to coast at museums, planetariums and libraries, as well as New York’s Times Square.

The plan called for the spacecraft to go from 12,300 mph (19,800 kph) to zero in six minutes flat as it pierced the Martian atmosphere and settled on the surface.

“Landing on Mars is one of the hardest single jobs that people have to do in planetary exploration,” said InSight’s lead scientist, Bruce Banerdt. “It’s such a difficult thing, it’s such a dangerous thing that there’s always a fairly uncomfortably large chance that something could go wrong.”

Mars has been the graveyard for a multitude of space missions. Up to now, the success rate at the red planet has been only 40 percent, counting every attempted flyby, orbital flight and landing by the U.S., Russia and other countries since 1960.

The U.S., however, has pulled off seven successful Mars landings in the past four decades, not counting InSight, with only one failed touchdown. No other country has managed to set and operate a spacecraft on the dusty red surface.

InSight was shooting for Elysium Planitia, a plain near the Martian equator that the InSight team hopes is as flat as a parking lot in Kansas with few, if any, rocks.

This is no rock-collecting expedition. Instead, the stationary 800-pound (360-kilogram) lander will use its 6-foot (1.8-metre) robotic arm to place a mechanical mole and seismometer on the ground. The self-hammering mole will burrow 16 feet (5 metres) down to measure the planet’s internal heat, while the seismometer listens for possible quakes.

Nothing like this has been attempted before at our next-door neighbor, nearly 100 million miles (160 million kilometres) away. No lander has dug deeper than several inches, and no seismometer has ever worked on Mars.

By examining the interior of Mars, scientists hope to understand how our solar system’s rocky planets formed 4.5 billion years ago and why they turned out so different — Mars cold and dry, Venus and Mercury burning hot, and Earth hospitable to life.

InSight has no life-detecting capability, however. That will be left to future rovers. NASA’s Mars 2020 mission, for instance, will collect rocks that will eventually be brought back to Earth and analysed for evidence of ancient life.