Nucleosides are the structural subunit of nucleic acids such as DNA and RNA. A nucleoside is composed of a nitrogenous base covalently attached to a five-carbon sugar (ribose or deoxyribose) and is either a pyrimidine (cytosine, thymine, or uracil) or a purine (adenine or guanine).