Gravitational lensing is a phenomenon that occurs when a massive object, like a galaxy or cluster of galaxies, bends the light from a more distant object, allowing astronomers to study the properties of both the lensing object and the background object.