Gravity, or gravitation, is a natural phenomenon by which all things with mass are brought toward (or gravitate toward) one another, including planets, stars and galaxies. Since energy and mass are equivalent, all forms of energy, including light, also cause gravitation and are under the influence of it. On Earth, gravity gives weight to physical objects and causes the ocean tides. The gravitational attraction of the original gaseous matter present in the Universe caused it to begin coalescing, forming stars — and the stars to group together into galaxies — so gravity is responsible for many of the large scale structures in the Universe. Gravity has an infinite range, although its effects become increasingly weaker on farther objects.
Gravity is most accurately described by the general theory of relativity (proposed by Albert Einstein in 1915) which describes gravity not as a force, but as a consequence of the curvature of spacetime caused by the uneven distribution of mass/energy. The most extreme example of this curvature of spacetime is a black hole, from which nothing can escape once past its event horizon, not even light. More gravity results in gravitational time dilation, where time lapses more slowly at a lower (stronger) gravitational potential. However, for most applications, gravity is well approximated by Newton's law of universal gravitation, which postulates that gravity causes a force where two bodies of mass are directly drawn (or 'attracted') to each other according to a mathematical relationship, where the attractive force is directly proportional to the product of their masses and inversely proportional to the square of the distance between them.
Gravity is the weakest of the four fundamental interactions of nature. The gravitational attraction is approximately 1038 times weaker than the strong force, 1036 times weaker than the electromagnetic force and 1029 times weaker than the weak force. As a consequence, gravity has a negligible influence on the behavior of subatomic particles, and plays no role in determining the internal properties of everyday matter (but see quantum gravity). On the other hand, gravity is the dominant interaction at the macroscopic scale, and is the cause of the formation, shape and trajectory (orbit) of astronomical bodies. It is responsible for various phenomena observed on Earth and throughout the Universe; for example, it causes the Earth and the other planets to orbit the Sun, the Moon to orbit the Earth, the formation of tides, the formation and evolution of the Solar System, stars and galaxies.
The earliest instance of gravity in the Universe, possibly in the form of quantum gravity, supergravity or a gravitational singularity, along with ordinary space and time, developed during the Planck epoch (up to 10−43 seconds after the birth of the Universe), possibly from a primeval state, such as a false vacuum, quantum vacuum or virtual particle, in a currently unknown manner. For this reason, in part, pursuit of a theory of everything, the merging of the general theory of relativity and quantum mechanics (or quantum field theory) into quantum gravity, has become an area of research.