A nucleotide is composed of a nucleobase (nitrogenous base), a five-carbon sugar (either ribose or 2-deoxyribose), and one phosphate group. Nucleotides contain either a purine or a pyrimidine base. Ribonucleotides are nucleotides in which the sugar is ribose. Deoxyribonucleotides are nucleotides in which the sugar is deoxyribose.