The process begins with the formation of the hard template, followed by the infiltration of a precursor material into the template. After the precursor material is solidified, the template is removed, usually through chemical etching or calcination, leaving behind a porous structure that mirrors the template.