Robotic prefabrication and 3D printing are set to transform construction, enabling resilient structures in extreme environments and potential Martian habitats.