The formation of tertiary structures is a complex process driven by the primary amino acid sequence of the protein. It begins with the formation of secondary structures, such as alpha helices and beta sheets, which then fold into the more complex tertiary structure. This folding process is often facilitated by molecular chaperones.