Crystallography is the scientific study of crystal structures and properties, primarily using X-ray diffraction to determine the atomic and molecular arrangement within a crystal. It is crucial in fields like materials science, chemistry, and biology for understanding the structural basis of material properties and biological functions.