Ankylosaurus lived in what is now western North America during the final stretch of the Cretaceous period, roughly 68 to 66 million years ago. Its fossils come from a narrow band of rock formations in Montana, Wyoming, and Alberta, Canada, all dating to the Maastrichtian stage, the last age of the dinosaurs. The landscape it inhabited was not the arid scrubland people sometimes picture but a lush, well-watered floodplain threaded with rivers and bordered by the retreating Western Interior Seaway, a shallow sea that had once split North America in two.
The Rock Formations That Preserve Ankylosaurus
All confirmed Ankylosaurus magniventris specimens come from three geologic formations. The Hell Creek Formation in northeastern Montana has produced the most material, including the specimens used to formally redescribe the species. The Lance Formation in Wyoming and the Scollard Formation in south-central Alberta round out its known range.1Canadian Journal of Earth Sciences. Redescription of Ankylosaurus magniventris Brown 1908 (Ankylosauridae) from the Upper Cretaceous of the Western Interior of North America All three formations are roughly the same age, deposited during the last two million years or so of the Cretaceous, and they represent broadly similar environments across what was then a coastal lowland stretching from present-day southern Canada to the northern Great Plains of the United States.
That geographic range may seem modest compared to some dinosaurs that span entire continents, but it reflects the real constraints of Ankylosaurus’s world. By the late Maastrichtian, the Western Interior Seaway was draining, and the land surface was expanding westward from the seaway’s retreating shoreline. Ankylosaurus occupied the strip of habitable lowland between the newly emerged coastal plain to the east and the rising Rocky Mountain front to the west.
A Warm, Wet Floodplain
The Hell Creek, Lance, and Scollard formations all record a landscape dominated by river channels, broad floodplains, and, near the very end of the Cretaceous, growing areas of standing water. Sedimentological work on the Hell Creek Formation describes a well-drained floodplain environment that, as time went on, shifted toward more waterlogged conditions with ponds and peat bogs forming close to the Cretaceous-Paleogene boundary.2Geological Society of America Bulletin. Elongated sandstone concretions record river system evolution across the Cretaceous-Paleogene boundary, Montana, USA Picture a broad, low-gradient river system, something like the modern Mississippi delta region in terms of flatness and moisture, though the comparison is imperfect.
The climate was considerably warmer and more equable than what those latitudes experience today. Fossil plant evidence shows that Maastrichtian conditions at middle and high latitudes were warm temperate, with subtropical conditions south of about 40°N. Annual rainfall was around 700 to 800 millimeters, spread fairly evenly across the year rather than concentrated in a monsoon season. Winters were mild even at high latitudes: cold-month averages hovered around 3 to 4°C and probably never dipped below freezing for extended stretches. Researchers attribute those gentle polar winters to warm oceanic currents that delivered heat to higher latitudes.3Geological Society London Special Publications. The Maastrichtian (Late Cretaceous) climate in the Northern Hemisphere The temperature gradient from equator to pole was much shallower than it is now, meaning there were no ice caps and the seasonal swings were dampened.
For Ankylosaurus, this meant a habitat without harsh freezes and with enough year-round moisture to support dense vegetation. It did not need to migrate to escape winter the way some high-latitude animals do today, and the consistent rainfall would have kept rivers flowing and floodplain plants growing through every season.
What Grew There
The forests and ground cover that Ankylosaurus walked through were dominated by flowering plants. A detailed study of plant fossils from the base of the Hell Creek Formation in eastern Montana found that angiosperms, the flowering plants, made up the overwhelming majority of the flora, accounting for 13 out of 17 identifiable plant types. Two species in particular were common: Dryophyllum subfalcatum, a broadleaf tree related to modern beeches and oaks, and “Vitis” stantoni, a vine. Gymnosperms like the dawn redwood Metasequoia and the swamp cypress relative Glyptostrobus were present but rare. Ferns and cycad-like plants, which had been abundant in earlier parts of the Cretaceous, were absent from this particular assemblage.4Geological Society of America Special Papers. A florule from the base of the Hell Creek Formation in the type area of eastern Montana: Implications for vegetation and climate
This is a significant shift from older Cretaceous ecosystems where conifers, ferns, and cycads provided most of the ground-level foliage available to herbivores. By the time Ankylosaurus appeared, flowering plants had taken over. That matters because the kinds of plants available directly shape what a low-browsing herbivore can eat. Ankylosaurus stood only about a meter and a half tall at the hip, so it was feeding on shrubs, ground cover, and low-hanging branches rather than canopy foliage. The dominance of angiosperms in its habitat meant its diet consisted largely of flowering-plant leaves, stems, and possibly fruits.
How Ankylosaurus Fed in This Landscape
Ankylosaurus had a broad, low-slung skull with small, leaf-shaped teeth that were clearly built for cropping vegetation rather than chewing it thoroughly. It lacked the sophisticated dental batteries of hadrosaurs (duck-billed dinosaurs), which could grind plant material into pulp. Instead, it likely bit off mouthfuls and swallowed them with minimal processing, relying on its large gut to handle fermentation.
Research on the biomechanics of closely related ankylosaurs gives a window into how efficient these animals were at feeding. A 2023 study comparing the skulls of two well-known ankylosaurs found that their bite forces fell within the average range for plant-eating dinosaurs. Euoplocephalus, a close relative of Ankylosaurus, produced estimated bite forces between about 166 and 444 newtons, while the nodosaurid Panoplosaurus generated 141 to 294 newtons. The study found that Panoplosaurus was actually more efficient at converting muscle force into bite force, suggesting its jaw was better tuned for feeding, while Euoplocephalus’s skull appeared more heavily reinforced for defense.5Nature / Scientific Reports. Divergent strategies in cranial biomechanics and feeding ecology of the ankylosaurian dinosaurs These bite forces are modest. For context, a modern alligator can generate thousands of newtons. Ankylosaurs were not power-chewers. They were low-energy harvesters, stripping soft vegetation from plants close to the ground.
That feeding style fits perfectly with the floodplain environment. A warm, wet landscape with year-round rainfall would have supported dense, low-growing angiosperm vegetation, exactly the kind of food a wide-mouthed, low-browsing herbivore could exploit without needing to travel far.
Built-In Air Conditioning
One of the more surprising adaptations that connects Ankylosaurus to its environment is the elaborate, looping nasal passage inside its skull. In most vertebrates, the air pathway from nostril to throat is relatively straight. In ankylosaurs, it takes a long, convoluted detour through the snout. Researchers have long suspected these passages worked as heat exchangers, warming or cooling incoming air and recovering moisture on the exhale, much like the scroll-shaped turbinate bones inside the noses of mammals and birds.
A computational fluid dynamics study tested this idea using digital models of the nasal passages of Panoplosaurus and Euoplocephalus. The results confirmed that these convoluted airways were highly effective at conditioning air. During exhalation, Panoplosaurus recovered about 65% of the heat energy it had used to warm inhaled air, while Euoplocephalus recovered roughly 84%. Both values fall comfortably within the range seen in living land animals with turbinate-based systems.6PubMed Central. Convoluted nasal passages function as efficient heat exchangers in ankylosaurs (Dinosauria: Ornithischia: Thyreophora) The researchers also suggested that this elaborate nasal plumbing helped regulate brain temperature, which would have been especially useful in a large, armored animal that generated plenty of body heat but had limited ability to shed it through its skin.
In a warm, humid Maastrichtian climate, being able to manage heat and water loss through the nose would have been a real advantage. Ankylosaurus lived in an environment that was not scorching but was consistently warm and moist, and a large body covered in bony armor would have been prone to overheating during any sustained activity. The nasal heat exchanger was, in essence, a passive radiator built into the skull.
Why Ankylosaur Fossils Often Turn Up Upside Down
One of the oddities of the ankylosaur fossil record is that a disproportionate number of specimens are found belly-up. This has puzzled paleontologists for over a century. Various explanations have been proposed, from predators flipping them over to feed on the soft underside, to the animals simply rolling downhill after death. The explanation that best fits the evidence, though, ties directly back to the watery floodplain environment these animals inhabited.
Computer modeling has shown that a “bloat-and-float” scenario accounts for the pattern most convincingly. When an ankylosaur died near or in water, gases from decomposition would have inflated the belly, making the carcass buoyant. Because the dorsal (back) surface was laden with heavy bony armor plates and the belly was unarmored and now swollen with gas, the center of buoyancy and the center of mass would have been offset. The bloated belly pushed upward while the armored back pulled downward. A slight disturbance, a bump against a sandbar or a shift in current, would have been enough to flip the floating carcass upside down. Once inverted, the heavy armor on the back kept it that way. When the gases eventually escaped, the carcass sank and was buried in sediment, armor-side down.7Palaeogeography, Palaeoclimatology, Palaeoecology. A “bloat-and-float” taphonomic model best explains the upside-down preservation of ankylosaurs
This taphonomic story is itself evidence about habitat. If ankylosaurs were routinely ending up floating in rivers and floodplain channels after death, they were living near those waterways. It is consistent with the picture of a lowland environment laced with slow-moving rivers and seasonal ponds, the kind of terrain where a large, relatively slow animal could easily wind up in the water after dying on a riverbank or during a flood event.
Inland or Coastal? The Ankylosaur Habitat Debate
A long-running question in ankylosaur research is whether different groups of armored dinosaurs preferred different habitats. Nodosaurids, the group without tail clubs, have historically turned up more often in marine-influenced sediments, meaning rocks that were deposited near the coast or in shallow seas. Ankylosaurids, the tail-club-bearing group that includes Ankylosaurus itself, are more commonly found in inland or freshwater settings. This led to a widely cited idea that nodosaurids lived near the coast while ankylosaurids stayed farther inland.
A detailed statistical analysis of ankylosaur occurrences across the Western Interior Basin found that the picture is messier than the simple inland-versus-coastal story suggests. The apparent difference turns out to be tangled up with the history of the Western Interior Seaway itself. Ankylosaurids went extinct in North America during the Cenomanian stage, roughly 94 million years ago, and did not return until Asian ankylosaurines migrated back during the late Campanian, tens of millions of years later. During that gap, only nodosaurids were present in North America, and the seaway was at or near its maximum extent, meaning more of the available rock record was marine. So the apparent coastal preference of nodosaurids may be an artifact: nodosaurids show up more in marine sediments partly because they were the only ankylosaurs around during the time when marine sediments were being deposited most widely.8Palaeogeography, Palaeoclimatology, Palaeoecology. Ankylosaurian dinosaur palaeoenvironmental associations were influenced by extirpation, sea-level fluctuation, and geodispersal
For Ankylosaurus specifically, the evidence is straightforward. Its fossils come from inland floodplain deposits, not coastal or marine rocks. By the time Ankylosaurus lived, the Western Interior Seaway had retreated far to the east and was a fraction of its former size. The coastline was distant from the environments preserved in the Hell Creek and Lance formations. Whatever broader habitat preferences the ankylosaurid lineage may have had, Ankylosaurus itself was an inland animal, living on river-laced lowlands far from the sea.
The Neighbors
Ankylosaurus shared its floodplain habitat with one of the most famous dinosaur communities ever assembled. The Hell Creek Formation is home to Tyrannosaurus rex, the ceratopsian Triceratops, the hadrosaur Edmontosaurus, the dome-headed Pachycephalosaurus, and the small theropod Troodon, among many others. Crocodilians, turtles, champsosaurs, and freshwater fish filled the rivers and ponds. Mammals were present but small, mostly shrew-sized insectivores and omnivores.
Within this community, Ankylosaurus was not common. Armored dinosaurs are consistently rarer in Hell Creek collections than ceratopsians and hadrosaurs, which dominate the herbivore count. This could reflect genuinely lower population densities, or it could be a preservation bias, since ankylosaur carcasses that bloated and floated may have been carried away from the environments where they were most likely to be buried and found. Either way, the rarity means that Ankylosaurus was probably not the dominant large herbivore on the landscape. Triceratops and Edmontosaurus appear to have filled that role, with Ankylosaurus occupying a less crowded niche as a solitary, heavily defended, low-browsing tank.
The Landscape Right Before the End
The final tens of thousands of years of the Cretaceous saw subtle but real changes in the Ankylosaurus habitat. As the Hell Creek floodplain aged, river systems appear to have become increasingly disrupted. Standing water expanded, creating more ponds, marshes, and peat bogs than had existed earlier in the formation’s history.2Geological Society of America Bulletin. Elongated sandstone concretions record river system evolution across the Cretaceous-Paleogene boundary, Montana, USA Whether this shift affected Ankylosaurus directly is hard to say. The species persisted right up to the Cretaceous-Paleogene boundary, meaning it survived any gradual environmental stress up to the point of the asteroid impact. Its armored body, low energy requirements, and ability to subsist on whatever low vegetation was available may have made it resilient to slow landscape change.
What it could not survive was the catastrophic disruption that followed the Chicxulub impact 66 million years ago. The collapse of photosynthesis-dependent food chains would have starved out large herbivores regardless of how well-armored they were. Ankylosaurus vanished along with all non-avian dinosaurs, but the environment it had inhabited, a warm, green, river-rich lowland thick with flowering plants, persisted in altered form into the early Paleocene, eventually repopulated by mammals, birds, and crocodilians rather than armored giants.
Ankylosaur Tracks in South America
While Ankylosaurus itself is known only from western North America, its broader family had a wider geographic footprint. Trackways attributed to ankylosaurs have been found in the El Molino Formation of Bolivia, dating to the latest Cretaceous. These tracks suggest that armored dinosaurs inhabited South American environments during roughly the same time period, though the specific animals that made them were almost certainly different species from Ankylosaurus. The El Molino Formation represents a different kind of environment, with extensive lake and carbonate deposits reflecting a drier, more seasonal landscape than the wet floodplains of Montana and Wyoming. The presence of ankylosaur tracks there is a reminder that armored dinosaurs as a group were adaptable to a range of conditions, even if the species we know best was a creature of lush, lowland river country.