In transcription, segments of DNA serve as templates to produce complementary RNA. The cell uses DNA to "write out" the mRNA message. In translation, ribosomes use the sequence of codons in mRNA to assemble amino acids into polypeptide chains. The decoding of the mRNA message into a protein is like taking the language of RNA and translating it into the language of proteins.