The proposed Mg2+ in the catalytic mechanism of TrmD, involving an eight-membered ring that consists of the N1, C6, and O6 of the guanine ring, the hydrogen bond to the imino group of N1, the two coordination bonds of Mg2+, and the three atoms of the carboxylate of the general base D169. Atomic numbering is indicated for guanine.