The genetic code is the set of rules by which information encoded within genetic material (DNA or RNA sequences) is translated into proteins (amino acid sequences) by living cells.