X-ray crystallography is used to determine the atomic structure of crystals. X-rays are directed onto a crystal and cause the atoms to diffract the x-rays into specific directions. By measuring the angles and intensities of the diffracted beams, researchers can construct a three-dimensional model of the electron density within the crystal and determine the positions of the atoms and their chemical bonds. Crystals are used because they help amplify the diffraction signal. The technique involves obtaining a suitable crystal, exposing it to x-rays to create a diffraction pattern, and then using the data and complementary information to computationally produce an atomic model of the crystal structure.