Although the solid state is typically characterised by inherent periodicity, many interesting physical and chemical properties of solids arise from a variation in this, i.e., changes in the nature of the atom occupying a particular site in a crystal structure or variation in the position of an atom (or group of atoms) in different parts of a structure, or variation as a function of time. This lack of long-range order poses significant challenges, not just for the characterisation of the structure of disordered materials, but also simply for its description. The sensitivity of nuclear magnetic resonance (NMR) spectroscopy to the local, atomic-scale environment, without the requirement for long-range order, makes it a powerful tool for the study of disorder in the solid state. Information on the number and type(s) of coordinating atoms or through-space and through-bond connectivity between atomic species enables the construction of a detailed picture of the structure. After a brief description of the background theory of NMR spectroscopy, and the experimental methods employed, we will describe the effects of disorder on NMR spectra and the use of calculations to help interpret experimental measurements. We will then review a range of applications to different types of disordered materials, including oxides and ceramics, minerals, porous materials, biomaterials, energy materials, pharmaceuticals, polymers and glasses. We will discuss the most successful approaches for studying different materials, and illustrate the type of information available and the structural insight gained.