The geology of Alaska includes Precambrian igneous and metamorphic rocks formed in offshore terranes and added to the western margin of North America from the Paleozoic through modern times. The region was submerged for much of the Paleozoic and Mesozoic and formed extensive oil and gas reserves due to tectonic activity in the Arctic Ocean. Alaska was largely ice free during the Pleistocene, allowing humans to migrate into the Americas.