Nasa logged another extraterrestrial first on its latest mission to Mars: converting carbon dioxide from the Martian atmosphere into pure, breathable oxygen, the US space agency said. The unprecedented extraction of oxygen, literally out of thin air on Mars, was achieved on Tuesday by an experimental device aboard Perseverance, a six-wheeled science rover that landed on the Red Planet on February 18 after a seven-month journey from Earth. In its first activation, the toaster-sized instrument, known as Moxie, short for Mars Oxygen In-Situ Resource Utilisation Experiment, produced about five grams of oxygen, equivalent to about 10 minutes' worth of breathing for an astronaut, Nasa said. Although the initial output was modest, the feat was the first experimental extraction of a natural resource from the environment of another planet for direct use by human beings. "Moxie isn't just the first instrument to produce oxygen on another world," said Trudy Kortes, director of technology demonstrations within NASA's Space Technology Mission Directorate. She called it the first technology of its kind to help future missions "live off the land" of another planet. The instrument works through electrolysis, which uses extreme heat to separate oxygen atoms from molecules of carbon dioxide, which accounts for about 95 per cent of the atmosphere on Mars. The remaining 5 per cent of the Mars atmosphere, which is only about 1 per cent as dense as Earth's, consists primarily of molecular nitrogen and argon. Oxygen exists on Mars in negligible trace amounts. But an abundant supply is considered critical to eventual human exploration of the Red Planet, both as a sustainable source of breathable air for astronauts and as a necessary ingredient for rocket fuel to fly them home. The volumes required for launching rockets into space from Mars are particularly daunting. According to Nasa, getting four astronauts off the Martian surface would take about seven metric tonnes of rocket fuel, combined with 25 metric tonnes of oxygen. Transporting a one-tonne oxygen-conversion machine to Mars is more practical than trying to haul 25 tonnes of oxygen in tanks from Earth, Moxie principal investigator Michael Hecht, of the Massachusetts Institute of Technology, said in Nasa's news release. Astronauts living and working on Mars would require perhaps one metric tonne of oxygen between them to last an entire year, Mr Hecht said. Moxie is designed to generate up to 10 grams per hour as a proof of concept, and scientists plan to run the machine at least another nine times over the next two years under different conditions and speeds, Nasa said. The first oxygen conversion run came a day after Nasa achieved the historic first controlled powered flight of an aircraft on another planet with a successful take-off and landing of a miniature robot helicopter on Mars. The twin-rotor chopper, known as Ingenuity, hitched a ride to Mars with Perseverance, whose primary mission is to search for fossilised traces of ancient microbes that may have flourished on Mars billions of years ago.