Nucleic acids are polymers of nucleotides that store genetic information. There are two main types: DNA and RNA. A nucleotide contains a nitrogenous base, a pentose sugar (ribose in RNA and deoxyribose in DNA), and a phosphate group. DNA forms a double helix with base pairing between complementary nucleotides. RNA exists in various forms that aid in protein synthesis.