4,5-Diaminopyrimidine is an intermediate in the synthesis of Nisin, a compound that was first introduced as a good preservative and was later on discovered to have antibacterial activity against gram positive bacteria. 4,5-Diaminopyrimidine is also used as a reagent to synthesize uracil-based 2-aminoanilide derivatives, compounds that act as histone deacetylase inhibitors.