For the first 700 million years, huge pieces of solid rock floated in a sea of magma-the same magma that comes out of volcamoes as lava today. This cooling magma released water vapor, creating the oceans. However,there was no oxygen, and the air couldn't support life.