The tidal force or tide-generating force is the difference in gravitational attraction between different points in a gravitational field, causing bodies to be pulled unevenly and as a result are being stretched towards the attraction. It is the differential force of gravity, the net between gravitational forces, the derivative of gravitational potential, the gradient of gravitational fields. Therefore tidal forces are a residual force, a secondary effect of gravity, highlighting its spatial elements, making the closer near-side more attracted than the more distant far-side.
This produces a range of tidal phenomena, such as ocean tides. Earth's tides are mainly produced by the relative close gravitational field of the Moon and to a lesser extent by the stronger, but further away gravitational field of the Sun. The ocean on the side of Earth facing the Moon is being pulled by the gravity of the Moon away from Earth's crust, while on the other side of Earth there the crust is being pulled away from the ocean, resulting in Earth being stretched, bulging on both sides, and having opposite high-tides. Tidal forces viewed from Earth, that is from a rotating reference frame, appear as centripetal and centrifugal forces, but are not caused by the rotation.