How was the Ocean Formed?

God formed the ocean, in my opinion, during the week of creation. Some scientists say that magma undeneath the earth pressed against the faults causing deep pockets to form which filled with water over the years.