Many TIM barrel proteins possess 2-fold, 4-fold or 8-fold internal symmetry, suggesting that TIM barrels evolved from ancestral (βα)4, (βα)2, or βα motifs through gene duplication and domain fusion. A good example of 2-fold internal symmetry is observed in the enzymes ProFAR isomerase (HisA) and imidazole glycerol phosphate synthase (HisF) of the "Thermotoga maritima" histidine biosynthesis pathway. They catalyze 2 successive reactions in the pathway, possess 25% sequence homology, and possess root-mean-square deviations (RMSDs) between 1.5-2 Å, suggesting divergence from a common ancestor. More interestingly, the loops on the C terminal ends of both HisA and HisF showed a twofold repeated pattern, suggesting that their common ancestor also possessed 2-fold internal symmetry. Using these observations, a model was constructed for the evolution of the TIM barrels. An ancestral half-barrel would have undergone a gene duplication and fusion event, resulting in a single protein containing two half-barrel domains. Structural adaptations would have occurred, resulting in the merging of these domains to form a closed β-barrel, and forming an ancestral TIM barrel. Functional adaptations would have also occurred, resulting in the evolution of new catalytic activity at the C terminal end of the β-barrel. At this point, the common ancestor of HisA and HisF would have undergone a second gene duplication event. Divergent evolution of the duplicated genes of the ancestral TIM barrel would have resulted in the formation of HisA and HisF.