Tertiary structure determines the final three-dimensional shape of a polypeptide, and results from various interactions between amino acids and R groups.