The study of the arrangement of atoms in a solid, which affects the electronic and magnetic properties of materials.