The ocean tides are caused by the gravitational pull of the moon on the ocean. When the moon is closest to the Earth, it causes "high tide", and when it is farthest, there is "low tide".
Additional factors on Earth that can cause tides are storms and the earth's orbit.