Pyrimidines are a class of organic compounds that contain a six-membered aromatic ring with two nitrogen atoms. They are one of the two families of nitrogenous bases found in nucleic acids, the other being purines. Pyrimidines play a crucial role in the structure and function of DNA and RNA.