The nucleic acids are very large molecules that have two main parts. The backbone of a nucleic acid is made of alternating sugar and phosphate molecules bonded together in a long chain. A chain of nucleotides joined together by phosphodiester bonds. Both DNA and RNA are nucleic acids.