The gravity from the moon and some from the sun brings the tides up, because the moon's gravitational force is strong enough to pull some water up.