Simulated annealing, in the form of temperature-controlled molecular dynamics, has been successfully applied to macromolecularX-ray structure optimization. The theory and practice of the methodare reviewed, and some recent improvements are described.