The electron density function of p ( r ) in a crystal determines its diffraction pattern, that is, both the magnitudes and phases of its x-ray diffraction maxima, and conversely. If, however, as is always the case, only magnitudes are available from the diffraction experiment, then the density function p ( r ) cannot be recovered. If one invokes prior structural knowledge, usually that the crystal is composed of discrete atoms of known atomic numbers, then the observed magnitudes are, in general, sufficient to determine the positions of the atoms, that is, the crystal structure.The intensities of a sufficient number of x-ray diffraction maxima determine the structure of a crystal. The available intensities usually exceed the number of parameters needed to describe the structure. From these intensities a set of members lEHl can be derived, one corresponding to each intensity. However, the elucidation of the crystal structure also requires a knowledge of the complex numbers EH =IEHI exp(i$,), the normalized structure factors, of which only the magnitudes lEHl can be determined from experiment. Thus, a 'phase' 4M, unobtainable from the diffraction experiment, must be assigned to each IEHI, and the problem of determining the phases when only the magnitudes IEH1 are known is called 'the phase problem'. Owing to the known atomicity of crystal structures and the redundancy of observed magnitudes lEHI, the phase problem is solvable in principle.