A room-temperature routine for the fabrication of a three-dimensional silicon porous framework inspired by a polymer foaming process is introduced. The obtained micron-sized pores can be further modified by hydrothermal growth of nanowires to form a hierarchical porous composite framework.