On-surface synthesis, complementary to wet chemistry, has been demonstrated to be a valid approach for the synthesis of tailored graphenic nanostructures with atomic precision. Among the different existing strategies used to tune the optoelectronic and magnetic properties of these nanostructures, the introduction of non-hexagonal rings inducing out-of-plane distortions is a promising pathway that has been scarcely explored on surfaces. Here, we demonstrate that non-hexagonal rings, in the form of tropone (cycloheptatrienone) moieties, are thermally transformed into phenyl or cyclopentadienone moieties upon an unprecedented surface-mediated retro–Buchner-type reaction involving a decarbonylation or an intramolecular rearrangement of the CO unit, respectively.