A protein's function is determined by its structure, and structure—the way a protein folds—is determined by its sequence of amino acids, the building blocks of proteins.