A solution of soluble metal, soluble polymer, and a suitable solvent is converted into a gel body having a surface area to volume ratio no greater than 10. The gel body is converted to inorganic foam. Foams of metal oxide, metal nitride foam, metal carbide foam, metal selenide, and elemental metal were prepared. Several of the foams are (a) molybdenum carbide and molybdenum nitride, (b) TiO, (c) copper selenide, (d) copper indium selenide, (e) molybdenum carbide, molybdenum nitride, and platinum, and (f) ruthenium dioxide.
STATEMENT REGARDING FEDERAL RIGHTS
 This invention was made with government support under Contract No. DE-AC52-06NA25396 awarded by the U.S. Department of Energy. The government has certain rights in the invention.