Nitrogen and carbon codopants-stabilized hierarchical porous ZnS microspheres undergo an unexpected dynamic transformation into hollow microspheres when nitrogen and carbon are removed from the former. Thus, such a transformation is evidence for the unprecedented stability of non-metal doped visible light-responsive photocatalysts.