The geological history of North America comprises the history of geological occurrences and emergence of life in North America during the interval of time spanning from the formation of the Earth through to the emergence of humanity and the start of prehistory. At the start of the Paleozoic Era, what is now "North" America was actually in the Southern Hemisphere. Marine life flourished in the country's many seas, although terrestrial life had not yet evolved. During the latter part of the Paleozoic, seas were largely replaced by swamps home to amphibians and early reptiles. When the continents had assembled into Pangaea, drier conditions prevailed. The evolutionary precursors to mammals dominated the country until a mass extinction event ended their reign.
The Triassic, the first period of the Mesozoic Era, followed. Dinosaurs evolved and began their rise to dominance, quickly spreading into the United States. Soon, Pangaea began to split up and North America began drifting north and westward. During the latter Jurassic, the floodplains of the western states were home to dinosaurs like Allosaurus, Apatosaurus, and Stegosaurus. During the Cretaceous, the Gulf of Mexico expanded until it split North America in half. Plesiosaurs and mosasaurs swam in its waters. Later into the period, it began to withdraw and the coastal plains of the western states were home to dinosaurs like Edmontosaurus, Triceratops, and Tyrannosaurus. Another mass extinction ended the reign of the dinosaurs.
The Cenozoic Era began afterward. The inland sea of the Cretaceous gradually vanished and mammals were beginning to dominate the land. During the Eocene, the western states were home to small primitive camels and horses as well as the carnivorous creodonts. Soon, mammals had entered the oceans and the early whale Basilosaurus swam the coastal waters of the southeast. Rhinoceros-like titanotheres dominated Oligocene South Dakota. From this point on, the climate in the United States cooled until the Pleistocene, when glaciers spread. Saber-toothed cats, woolly mammoths, mastodons, and dire wolves roamed the land. Humans arrived across a land bridge between Siberia and Alaska and may have played a role in hunting these animals into extinction.