Molecules containing a nitrogen-nitrogen (N-N) linkage have a variety of structures and biological activities; however, no enzyme has yet been demonstrated to catalyze N-N bond formation in an organic molecule. Here we report that the heme-dependent enzyme KtzT from Kutzneria sp. 744 catalyzes N-N bond formation in the biosynthesis of piperazate, a building block for nonribosomal peptides.