The structure of the thermostable triosephosphate isomerase (TIM) from Bacillus stearothermophilus complexed with the competitive inhibitor 2-phosphoglycolate was determined by X-ray crystallography to a resolution of 2.8 A. The structure was solved by molecular replacement using XPLOR. Twofold averaging and solvent flattening was applied to improve the quality of the map. Active sites in both the subunits are occupied by the inhibitor and the flexible loop adopts the "closed" conformation in either subunit. The crystallographic R-factor is 17.6% with good geometry. The two subunits have an RMS deviation of 0.29 A for 248 C alpha atoms and have average temperature factors of 18.9 and 15.9 A2, respectively. In both subunits, the active site Lys 10 adopts an unusual phi, psi combination. A comparison between the six known thermophilic and mesophilic TIM structures was conducted in order to understand the higher stability of B. stearothermophilus TIM. Although the ratio Arg/(Arg+Lys) is higher in B. stearothermophilus TIM, the structure comparisons do not directly correlate this higher ratio to the better stability of the B. stearothermophilus enzyme. A higher number of prolines contributes to the higher stability of B. stearothermophilus TIM. Analysis of the known TIM sequences points out that the replacement of a structurally crucial asparagine by a histidine at the interface of monomers, thus avoiding the risk of deamidation and thereby introducing a negative charge at the interface, may be one of the factors for adaptability at higher temperatures in the TIM family. Analysis of buried cavities and the areas lining these cavities also contributes to the greater thermal stability of the B. stearothermophilus enzyme. However, the most outstanding result of the structure comparisons appears to point to the hydrophobic stabilization of dimer formation by burying the largest amount of hydrophobic surface area in B. stearothermophilus TIM compared to all five other known TIM structures.