A nucleotide has three main parts: a phosphate group, a pentose sugar (deoxyribose in DNA or ribose in RNA), and a nitrogenous base (adenine, thymine, cytosine, guanine, or uracil). These components link together to form DNA or RNA chains, storing and transmitting genetic information essential for cell structure, function, and reproduction.