X-ray crystallography is a technique used to determine the arrangement of atoms in crystalline solids by using X-rays. When an X-ray beam hits a crystal, it causes the beam to diffract in specific directions. By measuring the angles and intensities of these diffracted beams, a crystallographer can produce a 3D image of electron density within the crystal. X-ray crystallography uses an X-ray diffractometer containing an X-ray source, monochromator, collimator, goniometer, detector and other parts. It has wide applications in fields like medicine, molecular biology, materials science and more to determine molecular structures.