Pyrimidine, also known as 1,3-diazobenzene, is a heterocyclic compound with the chemical formula C4H4N2. Pyrimidine is formed by substituting 2 nitrogen atoms for 2 carbons in the meta-position of benzene. It is a diazine and retains its aromaticity. Derivatives of pyrimidine widely exist in organic macromolecular nucleic acids, and many drugs also contain pyrimidine rings. In nucleic acids, three nucleobases are pyrimidine derivatives: cytosine, thymine and uracil. There are a variety of pyrimidine-containing drugs on the market, most of which are kinase inhibitors.
When the ends of the chains are joined together into a ring, cyclic compounds result; such substances often are referred to as carbocyclic or alicyclic compounds. Substitution of one or more of the ring carbon atoms in the molecules of a carbocyclic compound with a heteroatom gives a heterocyclic compound.