Ultra-high temperature carbide (UHTC) foams and methods of fabricating and using the same are provided. The UHTC foams are produced in a three-step process, including UHTC slurry preparation, freeze-drying, and spark plasma sintering (SPS). The fabrication methods allow for the production of any kind of single- or multi-component UHTC foam, while also providing flexibility in the shape and size of the UHTC foams to produce near-net-shape components.