Using the strong reduction potential of the liquid NaK-78 alloy, we present a new versatile template-free approach to the synthesis of porous metal- and metalloid-based nanomaterials. With this novel approach, NaK can be simultaneously used as an agent for reduction, structure directing, and pore formation without the use of additional reagents.