We report on the existence and formation of the carbon nitride precursor melam (H(2)N)(2)(C(3)N(3))NH(C(3)N(3))(NH(2))(2), thereby clarifying one of the last unresolved issues posed by the complex thermal condensation of melamine C(3)N(3)(NH(2))(3). Experimental proof is put forward that melam is a direct condensation product of melamine, but can be detected only in small amounts under special reaction conditions owing to its rapid transformation into melem. The coexistence of melamine and melem during thermal condensation yields two adduct phases with distinct compositions [C(3)N(3)(NH(2))(3)](2)[C(6)N(7)(NH(2))(3)] and [C(3)N(3)(NH(2))(3)][C(6)N(7)(NH(2))(3)](2). They may be considered as co-crystallizates of melamine and melem and can be isolated as intermediates between 590 and 650 K prior to the formation of single-phase melem C(6)N(7)(NH(2))(3). Melam (C2/c, a=1811.0(4), b=1086.7(2), c=1398.4(3) pm, beta=96.31(3) degrees, V=2735.3(9)x10(6) pm(3), T=130 K) adopts a ditriazinylamine-type structure with a twisted conformation about the bridging NH moiety and transforms into melem around 640 K. Two compounds deriving from melam have been synthesized by solution and solid-state reactions. The salt melamium diperchlorate C(6)N(11)H(11)(ClO(4))(2).2H(2)O (C2/c, a=1747.8(4), b=1148.2(2), c=993.6(2) pm, beta=118.79(3) degrees, V=1747.4(6)x10(6) pm(3), T=130 K) crystallizes as a dihydrate and exhibits a doubly protonated, planar melam core. In the neutral complex Zn[C(6)N(11)H(9)]Cl(2) (P2(1)/c, a=743.00(15), b=2233.2(5), c=762.5(2) pm, beta=99.86(3) degrees, V=1246.5(4)x10(6) pm(3), T=200 K), melam acts as a symmetrically bent bidentate ligand, which is coordinated to the Lewis acid Zn-site through two ring nitrogen atoms.