The physics of gravitational light deflection, or gravitational lensing, described in Einstein's theory of General Relativity offers a remarkable variety of applications in several fields of astrophysics. The deflection of light from a source by an intervening mass concentration, called lens, provides the intriguing possibility of investigating both the background source and the foreground lens. The gravitational lensing effect has been observed at all wavelengths, not only in the visible and infrared, but in the radio and X-ray bands as well. Lensing has proved to be a powerful tool that can be used to study astronomical objects with very different physical scales: from planets, to stars, to galaxies, and to clusters of galaxies. Moreover, lensing is a very promising diagnostics that can help answer some of the most important questions in cosmology: How much dark matter and dark-energy are present in the Universe? How is dark matter distributed? What is the physical nature of these dark components? Progress in this relatively new field through theory and observation has been extremely rapid during the last decades and the enormous amount of work produced on gravitational lensing has demonstrated its strength and its potential for future astrophysical applications. After a general introduction on gravitational lensing, I will concentrate on some examples of strong gravitational lensing in early-type galaxies and cluster of galaxies, focusing on the dark matter properties of these objects.