For almost half a century, shell-model theory has served as a reference tool for the interpretation of nuclear spectroscopy. However, its impact was restricted at first by a limited knowledge of the effective Hamiltonian on the one hand and by the magnitude of the associated computations on the other hand. In the last decade, an improvement in our understanding of nuclear dynamics and the availability of ever growing computing power have radically changed the status of shell-model theory and have pushed it to the forefront among nuclear theoretical models. This article, which provides an introduction to the modern literature on the subject, offers many examples of its achievements, including an enhanced understanding of nuclei very far from stability.