Pyrimidine is a type of nitrogenous base that forms one of the two categories of bases in nucleic acids. Alongside purines, pyrimidines are essential for the structure and function of DNA and RNA. The primary pyrimidine bases are cytosine, thymine (found in DNA), and uracil (found in RNA).