Cytosine is one of the four main bases found in DNA and RNA, classified as a pyrimidine. It pairs specifically with guanine in DNA and RNA through hydrogen bonding, playing a crucial role in the encoding of genetic information. Its presence and sequence in nucleic acids are essential for proper gene expression and protein synthesis.