Identify the role of each component: The phosphate group provides the backbone structure, the pentose sugar (either ribose or deoxyribose) connects to the phosphate and nitrogenous base, and the nitrogenous base (adenine, thymine, cytosine, guanine, or uracil) is involved in base pairing.