Unfolding a photoswitchable azo-foldamer reveals a non-covalent reaction mechanism.