We present a novel type of ultrathin hydrogel microcapsules with pH-triggered shape switch. The capsules are produced as hollow hydrogel replicas of cubical inorganic templates and capable of keeping cubical geometries at neutral pH but transform into bulged structures at basic pH. © 2011 The Royal Society of Chemistry.