Proteins are complex molecules composed of up to 20 different amino acids joined by peptide bonds. The primary structure of a protein is determined by the specific sequence of amino acids in its polypeptide chains, where each amino acid contains an amino group and a carboxyl group.