was subsequently used as a structure-directing agent to prepare ZnO with a porous network structure. The thus obtained PS, CAPS and porous ZnO may find their niche in applications such as adsorbent, structure-directing agents for porous metal oxides or as sensors.