The tides happen because the moon pulls on the water in the ocean, like a giant magnet. When the moon is close, the ocean gets pulled up into a high tide. When it's far away, it goes down to a low tide. It’s kind of like when you pull on one end of a rope, the other end moves too!