Tides in oceans are primarily formed by the gravitational pull of the moon and the sun on the Earth's water. The gravitational force of the moon causes a bulge in the ocean water on the side facing the moon, creating high tide, while another bulge is created on the opposite side of the Earth, causing another high tide. The areas in between experience low tide. The Sun also has an influence on tides, although its effect is less compared to the moon. The combination of these gravitational forces, along with the rotation of the Earth, causes the regular pattern of high and low tides in oceans.