The CÀ N coupling of 1,2,4-triazolo[1,5-a]pyrimidin-7-ones with 1-adamantanol/1-bromoadamantane leads to 1,2,4-triazolo[4,3-a]pyrimidinium-5-olates, which are represented as mesomeric betaines (MBs). The formation of MBs involves not only N-alkylation of heterocyclic framework but also the rearrangement leading to a change in the type of fusion between pyrimidine and 1,2,4-triazole fragments. The structures of the obtained products were confirmed by the Xray analysis and measurements of 13 CÀ 13 C (J CC ) coupling constants in the 1D 13 C NMR spectra of selectively 13 C-labeled samples. Treatment of the betaines with lithium bis(trimethylsilyl)amide (LiHMDS) gave anionic carbenes, which were detected by 13 C NMR spectroscopy and were trapped by reactions with phenyl isothiocyanate and sulfur. Density functional theory (DFT) and the quantum theory of atoms in molecules (QTAIM) analyses allowed for an insight into the electronic structure of the obtained betaines and N-heterocyclic carbene derivatives.[a] E.