Abstract. Two rather similar historical evolutions are evoked, each one originating in fundamental spin studies by physicists, and ending as magnetic resonance imaging (MRI), a set of invaluable tools for clinical diagnosis in the hands of medical doctors. The first one starts with the early work on nuclear magnetic resonance, the founding stone of the usual proton-based MRI, of which the basic principles are described. The second one starts with the optical pumping developments made to study the effects of spin polarization in various fundamental problems. Its unexpected outcome is a unique imaging modality, also based on MRI, for the study of lung physiology and pathologies.