The method of high-energy total elastic X-ray scattering to determine the atomic structure of nanocrystalline, highly disordered, and amorphous materials is presented. The current state of the technique, its potential, and limitations are discussed with two successful studies on the pressure induced phase transition in mackinawite
(FeS)
and the high-pressure behavior of liquid gallium.