Diffraction of x-rays by the regularly spaced atoms of a substance, useful for determining the arrangement of atoms and thereby the nature or composition of a substance.