The synthesis of polyhetarylenes containing exclusively s-tetrazine and another nitrogen heterocycle (pyridine or s-triazine) is described. The key step involved the polymerization of a suitable di- or triamidrazone, leading to a linear or hyperbranched dihydro-tetrazine-based assembly, respectively. The triazinylenetetrazinylene material stands as one of the most nitrogenated polymers ever described. (c) 2007 Elsevier Ltd. All rights reserved.