A polymer [(C3N3)(2)(NH)(3)](n) has been prepared by the reaction of C3N3Cl3 and NH3 or C3N3-Cl-3 and C3N3(NH2)(3). An electron diffraction study suggests that this polymer has a hexagonal structure similar to that of graphite. A structural model for this polymer has been proposed on the basis of X-ray, electron diffraction, IR, ESCA, and specific gravity measurements. A hole surrounded by three amino radicals in the unit cell of this structure suggests the potential activity of this polymer as a host material. Interaction of the polymer with AlCl3, ZnCl2, or MgCl2 at 500 degrees C has resulted in the formation of a material which can be converted at 900-1000 degrees C into AlN, ZnCN2, or MgCN2, respectively. The triazine ring in this polymer imparts good thermal stability and photoluminescent characteristics.