Nucleic acids are polymers made up of monomers called nucleotides. Each nucleotide consists of three components: a nitrogenous base, a pentose sugar (deoxyribose in DNA and ribose in RNA), and a phosphate group. These nucleotides link together to form the long chains of DNA or RNA, which store and transmit genetic information.