The surface was molten. As Earth cooled, an atmosphere formed mainly from gases spewed from volcanoes. It included hydrogen sulfide, methane, and ten to 200 times as much carbon dioxide as today's atmosphere. After about half a billion years, Earth's surface cooled and solidified enough for water to collect on it.