We present a review of the basic ideas and techniques of the spectral density functional theory which are currently used in electronic structure calculations of strongly-correlated materials where the one-electron description breaks down. We illustrate the method with several examples where interactions play a dominant role: systems near metal-insulator transition, systems near volume collapse transition, and systems with local moments.