Einstein's theory revolutionized our understanding of gravity, proposing that it is not a force, but rather a curvature of spacetime caused by the presence of mass and energy. This curvature of spacetime affects the paths of objects, including light.
While Isaac Newton's law of universal gravitation described gravity as a force between objects with mass, it did not account for the bending of light. Einstein's theory, however, predicted that light would be bent by the gravitational field of massive objects, such as stars.
This prediction was confirmed by observations of starlight bending around the Sun during a solar eclipse in 1919, which provided strong evidence for the validity of general relativity and the influence of gravity on light.