 The theory used to be that when the planet first formed, it was too hot for there to be water. So what happened was the water arrived after the planet was, after Earth was created, I mean fairly soon after its creation. There was a kind of bombardment of comets and meteorites which had water in them. And that kind of over time kind of created the ocean.