DNA and RNA are made up of nucleotides, which consist of a pentose sugar, phosphate group, and nitrogenous base. Nucleotides bond together to form polynucleotides, which make up DNA and RNA. DNA contains the sugar deoxyribose and is found in the nucleus, while RNA contains the sugar ribose and is involved in protein synthesis. During transcription, DNA is used as a template to produce mRNA, which then leaves the nucleus for translation by ribosomes into proteins. DNA replicates semi-conservatively, keeping one original strand and producing a new complementary strand using free nucleotides in the nucleus.