The geology of Guam formed as a result of mafic, felsic and intermediate composition volcanic rocks erupting below the ocean, building up the base of the island in the Eocene, between 33.9 and 56 million years ago. The island emerged above the water in the Eocene, although the volcanic crater collapsed. A second volcanic crater formed on the south of the island in the Oligocene and Miocene. In the shallow water, numerous limestone formations took shape, with thick alternating layers of volcanic material. The second crater collapsed and Guam went through a period in which it was almost entirely submerged, resembling a swampy atoll, until structural deformation slowly uplifted different parts of the island to their present topography. The process of uplift led to widespread erosion and clay formation, as well as the deposition of different types of limestone, reflecting different water depths.