DNA is used as a template to create messenger RNA through transcription. Messenger RNA carries the genetic code to ribosomes where transfer RNA matches codon sequences and brings amino acids for protein synthesis. Ribosomes assemble the amino acids into proteins according to the code provided by messenger RNA and transfer RNA.