Palladium(II)-triggered rearrangement of heptaphyrins to N-confused porphyrins.