Any of the high-molecular-weight molecules that carry the genetic information crucial to the replication of cells and the manufacturing of cellular proteins. They have a complex structure formed of sugars (pentoses), phosphoric acid, and nitrogen bases (purines and pyrimidines). Most important are ribonucleic acid (RNA) and deoxyribonucleic acid (DNA).