any of a group of molecules that, when linked together, form the building blocks of DNA or RNA: composed of a phosphate group, the bases adenine, cytosine, guanosine, and thymine, and a pentose sugar, in RNA the thymine base being replaced by uracil.