The Sturm – Liouville differential operators on closed sets of the real line are considered. Properties of their spectral characteristics are obtained and the inverse problem of recovering the operators from their spectra is studied. An algorithm for the solution of the inverse problem is developed and the uniqueness of the solution is established. The statement and the study of inverse spectral problems essentially depend on the structure of the closed set.