Gravitational microlensing is an astronomical phenomenon caused by the gravitational lens effect. It can be used to detect objects that range from the mass of a planet to the mass of a star, regardless of the light they emit. Typically, astronomers can only detect bright objects that emit much light (stars) or large objects that block background light (clouds of gas and dust). These objects make up only a minor portion of the mass of a galaxy. Microlensing allows the study of objects that emit little or no light.
When a distant star or quasar gets sufficiently aligned with a massive compact foreground object, the bending of light due to its gravitational field, as discussed by Albert Einstein in 1915, leads to two distorted images (generally unresolved), resulting in an observable magnification. The time-scale of the transient brightening depends on the mass of the foreground object as well as on the relative proper motion between the background 'source' and the foreground 'lens' object.