Codons are sequences of three nucleotides in messenger RNA (mRNA) that specify a particular amino acid or signal the termination of protein synthesis. They are essential in the process of translation, where the genetic code carried by mRNA is decoded to produce a specific polypeptide.