This work clarifies the mechanism of the formation of hollow nanostructures (nanotubes and nanospheres) during the InOOH to rh-In2O3 transformation.