A codon is a sequence of three nucleotides in DNA or RNA that corresponds to a specific amino acid or a stop signal during protein synthesis. This triplet code is essential for translating genetic information into proteins, as each codon matches with a corresponding tRNA molecule that carries the appropriate amino acid. The codon sequence ultimately determines the primary structure of proteins, which is vital for their function in cellular processes.