Bricks produced using fungal mycelium, yard waste and wood chips as a part of a NASA-funded myco-architecture project. Similar materials could be used to build habitats on the moon or Mars.

Fungus could be very much among us when humanity sets up shop on the moon and beyond.

NASA researchers are investigating the potential of mycelia — the mass of nutrient-absorbing, widely branching underground threads that make up much of a fungus's bulk — to help construct outposts on the moon and Mars .

"Right now, traditional habitat designs for Mars are like a turtle — carrying our homes with us on our backs," project principal investigator Lynn Rothschild, of NASA's Ames Research Center in California, said in a statement.

This is "a reliable plan, but with huge energy costs," she added in a NASA statement . "Instead, we can harness mycelia to grow these habitats ourselves when we get there."

Video: How fungus among us could build moon bases

Related: How Living on Mars Could Challenge Colonists (Infographic)

Rothschild and her team are conducting their research with the aid of funding from the NASA Innovative Advanced Concepts (NIAC) program, which seeks to encourage the development of potentially game-changing exploration technologies.

And the myco-architecture project could indeed be game-changing, if everything works out. (There's certainly no guarantee that it will, however; the project is in the early stages.)

"Ultimately, the project envisions a future where human explorers can bring a compact habitat built out of a lightweight material with dormant fungi that will last on long journeys to places like Mars," NASA officials wrote in the same statement. "Upon arrival, by unfolding that basic structure and simply adding water, the fungi will be able to grow around that framework into a fully functional human habitat — all while being safely contained within the habitat to avoid contaminating the Martian environment."

A researcher holding a petri dish containing mycelia — the underground threads that make up the main part of a fungus — growing in simulated Martian soil. (Image credit: NASA/Ames Research Center/Lynn Rothschild)

There could be many different manifestations of off-Earth "mush-rooms." For example, one habitat concept would consist of three layers, NASA officials explained. On top would be water ice, which may be sourced locally. (Both the moon and Mars are known to harbor the stuff.) The ice would shield the habitat's human occupants from harmful radiation and would also provide resources to the tiny denizens of the middle layer — photosynthesizing microbes called cyanobacteria. These creatures would produce oxygen for the astronauts and nutrients for the fungal mycelia, the chief constituent of the bottom layer.

That basal layer provides the main structure of the habitat. The mycelia that make it up would be heavily processed, baked into sturdy bricks. This would kill the fungus, ensuring that none could escape and proliferate in the alien wilds . But as a second safeguard, any fungi used in this manner would be genetically altered to make them incapable of surviving beyond the base, NASA officials said.

The mycelia could do more than just serve as walls and ceilings, however. Fungi could also help filter water for off-Earth pioneers and extract minerals from their sewage, NASA officials said. And, like many technologies developed for space exploration , myco-architecture could end up having significant applications here on Earth as well — perhaps helping to reduce the huge carbon footprint of the construction industry, for example.

A stool constructed out of mycelia after two weeks of growth. The next step is a baking process process that leads to a clean and functional piece of furniture. The myco-architecture project seeks to design not only for habitats, but for the furniture that could be grown inside them as well. (Image credit: 2018 Stanford-Brown-RISD iGEM Team)

"When we design for space, we're free to experiment with new ideas and materials with much more freedom than we would on Earth," Rothschild said. "And after these prototypes are designed for other worlds, we can bring them back to ours."

Rothschild and her colleagues aren't the only researchers working on novel and efficient habitat designs. For example, teams around the world are investigating the potential of 3D printing to construct habitats out of native Mars or moon material, spurred in part by competitions such as NASA's 3D-Printed Habitat Challenge .

Mike Wall's book about the search for alien life, " Out There " (Grand Central Publishing, 2018; illustrated by Karl Tate ), is out now. Follow him on Twitter @michaeldwall . Follow us on Twitter @Spacedotcom or Facebook .