For long-term stays on the Moon and Mars, we would need to use local materials to build on location. Off-Earth manufacturing could be used to construct infrastructure that meets needs such as shielding crews and equipment from radiation, providing food and water, and generating electricity.