The geology of Nicaragua includes Paleozoic crystalline basement rocks, Mesozoic intrusive igneous rocks and sedimentary rocks spanning the Cretaceous to the Pleistocene. Volcanoes erupted in the Paleogene and within the last 2.5 million years of the Quaternary, due to the subduction of the Cocos Plate, which drives melting and magma creation. Many of these volcanoes are in the Nicaraguan Depression paralleled by the northwest-trending Middle America Trench which marks the Caribbean-Cocos plate boundary. Almost all the rocks in Nicaragua originated as dominantly felsic continental crust, unlike other areas in the region which include stranded sections of mafic oceanic crust. Structural geologists have grouped all the rock units as the Chortis Block.