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. Codons are fundamental to the genetic code, allowing for the translation of genetic information into functional proteins.