The short answer: the Mesozoic Era
Dinosaurs lived during the Mesozoic Era, which ran from about 252 million to 66 million years ago. The earliest known dinosaurs show up in rocks roughly 230 to 235 million years old, in the second half of the Triassic Period. Non-bird dinosaurs died out about 66 million years ago, at the end of the Cretaceous Period.
That means dinosaurs were a major part of life on land for something like 160 million years. And since birds are living dinosaurs, you could argue that the dinosaur story never really ended.
The three periods of the dinosaur age
Geologists split the Mesozoic into three periods. The boundaries are dated from volcanic rock layers and are refined from time to time, so you’ll see slightly different numbers in different sources. The figures below are rounded.
Triassic Period (about 252 to 201 million years ago)
The Triassic began right after the end-Permian mass extinction, the largest known die-off in Earth’s history. The land was joined into one supercontinent, Pangaea, and much of its interior was hot and dry.
Dinosaurs appeared partway through this period, but they weren’t in charge at first. Early dinosaurs such as Eoraptor and Herrerasaurus from Argentina were fairly small to medium-sized animals living alongside many other reptile groups, including crocodile relatives that were often bigger and more common. The first pterosaurs and the first mammal relatives also appeared during the Triassic.
Jurassic Period (about 201 to 145 million years ago)
Another mass extinction closed the Triassic and removed many of the dinosaurs’ competitors. In the Jurassic, dinosaurs became the dominant large land animals. Pangaea was breaking apart, and the climate was generally warm, with lush forests of conifers, ferns, cycads and ginkgoes.
This is the age of giant long-necked sauropods like Brachiosaurus, Diplodocus and Apatosaurus, plated Stegosaurus, and predators like Allosaurus. Late in the Jurassic, the first birds appear in the fossil record, with Archaeopteryx the best-known example.
Cretaceous Period (about 145 to 66 million years ago)
The Cretaceous is the longest of the three periods, lasting close to 80 million years. The continents kept drifting toward their modern positions, sea levels were often high, and flowering plants spread and diversified.
Many famous dinosaurs come from this period, especially its final stretch: Tyrannosaurus rex, Triceratops, Ankylosaurus, duck-billed hadrosaurs and Velociraptor. If you want to see how the last two periods compare, we answer “What were the key differences between the Jurassic and Cretaceous periods?” in a separate piece.
When the first dinosaurs appeared
Pinning down the very first dinosaur is tricky. The oldest widely accepted dinosaurs are around 230 to 233 million years old, from South America. Some older fossils, such as Nyasasaurus from Tanzania, might be dinosaurs or very close relatives, but scientists still debate them. For more on the origins, see our article on when did dinosaurs appear on earth.
Dinosaurs descend from a group of reptiles called archosaurs, which also gave rise to crocodilians and pterosaurs. Early dinosaurs were mostly lightly built, and many walked on two legs.
How the dinosaur age ended
About 66 million years ago, an asteroid roughly 10 kilometers (around 6 miles) wide struck what is now the Yucatán Peninsula in Mexico, leaving the Chicxulub crater. The impact, along with long-running volcanic eruptions in India known as the Deccan Traps, is linked to a mass extinction that wiped out all non-bird dinosaurs, the pterosaurs, many marine reptiles and a large share of other life.
Our dinosaur extinction timeline goes through the sequence of events in more detail.
Birds: the dinosaurs that never left
Modern scientists classify birds as a branch of theropod dinosaurs, the same broad group that includes Velociraptor and T. rex. A few bird lineages survived the extinction, and today there are around 10,000 or more living bird species. So when people say “the dinosaurs died out 66 million years ago,” they usually mean the non-avian dinosaurs.
How long dinosaurs were around, in perspective
The dinosaur age was enormous, and the periods were long enough that many dinosaurs never shared the planet with each other:
- Stegosaurus lived roughly 150 million years ago. T. rex lived roughly 68 to 66 million years ago. That gap of more than 80 million years is longer than the time between T. rex and us.
- Our own species, Homo sapiens, has existed for roughly 300,000 years. That’s a tiny sliver compared with the dinosaurs’ run.
- The time since the dinosaurs died out, 66 million years, is less than half the length of the dinosaur age itself.
People often ask, “Did humans exist at the same time as dinosaurs?” Outside of birds, the answer is no: tens of millions of years separate the last non-bird dinosaurs from the first humans.
How scientists know these dates
Fossils themselves usually can’t be dated directly. Instead, scientists date the rock layers around them, especially layers of volcanic ash, using radiometric dating. These methods measure the slow, steady decay of radioactive elements such as uranium and potassium into other elements.
This is also why carbon dating isn’t used. Radiocarbon only works on material up to roughly 50,000 years old, far too young for dinosaurs. We explain more in our piece on can you carbon date dinosaur bones.
Fossils of certain widespread species, called index fossils, also help geologists match up rock layers of the same age in different parts of the world.
Common mix-ups about dinosaur time
- “Jurassic” doesn’t cover every dinosaur. The name became famous through movies, but many of the best-known dinosaurs, including T. rex and Triceratops, lived in the Cretaceous. Our answer to “Did T. rex live during the Jurassic period?” covers this one.
- Not every prehistoric animal is a dinosaur. Pterosaurs, plesiosaurs, mosasaurs and Dimetrodon are often grouped with dinosaurs, but they belong to other reptile groups or, in the case of Dimetrodon, an earlier line related to mammals.
- Woolly mammoths came much later. Mammoths lived during the last few million years, long after the dinosaurs were gone.
Quick summary
| Period | Approximate dates | Dinosaur highlights |
|---|---|---|
| Triassic | 252 to 201 million years ago | First dinosaurs appear, around 230 million years ago |
| Jurassic | 201 to 145 million years ago | Giant sauropods, Stegosaurus, Allosaurus, first birds |
| Cretaceous | 145 to 66 million years ago | T. rex, Triceratops, hadrosaurs, flowering plants spread |
In short, dinosaurs were alive during the Mesozoic Era, from roughly 230 million years ago until 66 million years ago, and their bird descendants are still with us today.