The sequence of amino acids in a protein determines its shape, which in turn determines its function. The raw sequence of amino acids is known as its primary structure. However, when a molecule is as large as proteins tend to be, it will interact with itself to take on a specific shape.