DNA and RNA, composed of nucleotide building blocks, store hereditary information. These polymers have a backbone of alternating ribose and phosphate groups, with nitrogenous bases forming ladder rungs. The sequence of nucleotides encodes genetic information, making nucleic acids fundamental to life.