The genetic code is a set of rules that determines how codons (three-letter sequences of nucleotides) in mRNA are translated into specific amino acids during protein synthesis.