Nucleic acids are macromolecules that store genetic information and enable protein production in biological organisms. Nucleic acids include two main classes: DNA and RNA.