Nucleotides are the basic building blocks of DNA and RNA. They consist of a nitrogenous base, a 5-carbon sugar, and a phosphate group. There are four nitrogenous bases: adenine, guanine, cytosine, and thymine or uracil. In DNA, adenine pairs with thymine and cytosine pairs with guanine. In RNA, adenine pairs with uracil instead of thymine. The sequence of these nucleotide bases in nucleic acids determines an organism's traits and functions by encoding genetic information. Nucleotides come together to form the polymeric structures of DNA and RNA, which play essential roles in storing and transmitting genetic information.