The short answer
Dinosaurs’ closest relatives fall into a few groups:
- Birds, which are not just relatives but living dinosaurs, descended from small feathered theropods.
- Crocodilians (crocodiles, alligators, caimans and gharials), the closest living relatives of dinosaurs outside of birds.
- Pterosaurs, the extinct flying reptiles, which were close cousins of dinosaurs but not dinosaurs themselves.
- Early Triassic relatives such as silesaurids and lagerpetids, small animals that sit near the base of the dinosaur family tree.
Lizards, snakes and turtles are also related, but more distantly. All of these animals are reptiles in the broad sense, but dinosaurs are much closer to crocodiles and birds than to a lizard.
Birds: the living dinosaurs
Modern scientific classification treats birds as a branch of theropod dinosaurs, the group that also includes Tyrannosaurus and Velociraptor. The evidence includes many shared skeletal features, such as hollow bones, a wishbone and a similar wrist and ankle structure, plus the many fossils of feathered non-bird dinosaurs found over the past few decades.
Because of this, the answer to “what is the closest living relative of T. rex?” is usually given as birds. Studies of proteins recovered from some exceptionally preserved dinosaur fossils have also been reported as more similar to those of birds than of other animals, although that line of research is still debated. The topic is covered in more depth in what is the closest DNA to dinosaurs.
Birds sit on the lizard-hipped side of the dinosaur family tree, which surprises many people. The background on that is explained in the overview of lizard hipped and bird hipped dinosaurs.
Crocodilians: the closest living non-bird relatives
Crocodilians and dinosaurs both belong to a group called Archosauria, meaning “ruling reptiles.” Archosaurs split early in the Triassic Period into two main lines:
- One line led to crocodilians and their many extinct relatives.
- The other line led to pterosaurs and dinosaurs, including birds.
That means crocodiles and birds share a more recent common ancestor with each other than either does with lizards or snakes. Birds and crocodilians share some features inherited from early archosaurs, such as a four-chambered heart, and both groups build nests and look after their eggs or young in various ways.
A crocodile is still not a dinosaur, though. It belongs to the other archosaur branch, which never had the open hip socket and other features that define dinosaurs. For more on that, see why are crocodiles not dinosaurs. Crocodile relatives did live alongside dinosaurs throughout the Mesozoic, which answers the related question of whether crocodiles existed with dinosaurs.
Archosaurs: the family dinosaurs belong to
During the Triassic, the crocodile-line archosaurs were especially diverse. They included armored plant eaters, long-snouted fish eaters and large land predators, some of which looked superficially like later meat-eating dinosaurs. Many of these groups died out at or before the end of the Triassic, and dinosaurs became the dominant large land animals during the Jurassic.
Some well-known crocodile-line groups from the Triassic include:
- Phytosaurs, which looked a lot like modern crocodiles, though their exact position near the base of the archosaur tree has been debated.
- Aetosaurs, armored, mostly plant-eating animals.
- Rauisuchians and related predators, some of which were large, top predators of their time.
Pterosaurs: the flying cousins
Pterosaurs, such as Pteranodon and Quetzalcoatlus, are often shown in dinosaur books and films, but they were not dinosaurs. They belong to the same branch of archosaurs as dinosaurs, which is why they are considered close relatives. Their wings were made of a skin membrane stretched mainly along a very long fourth finger, which is quite different from the feathered wings of birds.
Pterosaurs and dinosaurs appeared at roughly similar times in the Triassic and lived side by side until both, apart from birds, disappeared at the end of the Cretaceous, about 66 million years ago.
The closest extinct relatives
Between the split from the crocodile line and the first true dinosaurs, there were several smaller groups that help show how dinosaurs evolved.
Silesaurids
Silesaurids, named after Silesaurus from Poland, were lightly built, long-legged animals from the Triassic. Many had beak-like jaw tips and teeth suited to eating plants or a mixed diet. For years they were treated as the closest relatives of dinosaurs, just outside the group. Some more recent studies have suggested that silesaurids might instead be early members of Ornithischia, which would make them dinosaurs. This is an open question.
Lagerpetids and other small early forms
Lagerpetids, such as Lagerpeton from Argentina, were small, slender animals once thought to be early dinosaur relatives. A 2020 study suggested that they are actually closely related to pterosaurs, helping to fill in the poorly understood origins of flying reptiles. Another small Argentine animal, often called Marasuchus or Lagosuchus, is also commonly cited as an early relative close to the dinosaur line.
These animals are not famous, but they are important. They show that many dinosaur features, such as upright legs and a lightly built body, began appearing before the first true dinosaurs.
More distant relatives: lizards, snakes and turtles
Lizards and snakes belong to a separate reptile group called lepidosaurs, along with the tuatara of New Zealand. They split from the archosaur line well before dinosaurs appeared. Despite the word “saurus,” meaning lizard, appearing in many dinosaur names, dinosaurs are not closely related to lizards. That naming habit is explained further in how are dinosaurs named.
Turtles have been harder to place. Many genetic studies have grouped turtles closer to archosaurs than to lizards and snakes, which would make them more closely related to dinosaurs than lizards are. Their exact position is still discussed, but they are generally considered more distant relatives than crocodilians.
Animals often mistaken for dinosaurs
Several prehistoric animals are commonly called dinosaurs but belong to other groups:
- Plesiosaurs, ichthyosaurs and mosasaurs: marine reptiles. Mosasaurs were actually large relatives of lizards and snakes.
- Pterosaurs: flying reptiles, close relatives but not dinosaurs.
- Dimetrodon: the sail-backed animal often sold in dinosaur toy sets. It lived before the dinosaurs and was a synapsid, part of the broader group that later gave rise to mammals. It is more closely related to humans than to dinosaurs.
- Woolly mammoths and saber-toothed cats: mammals that lived tens of millions of years after non-bird dinosaurs died out.
Summary table
| Group | Relationship to dinosaurs | Still living? |
|---|---|---|
| Birds | Are dinosaurs (theropods) | Yes |
| Crocodilians | Closest living non-bird relatives; other branch of archosaurs | Yes |
| Pterosaurs | Close cousins on the same archosaur branch | No |
| Silesaurids | Very close relatives, or possibly early ornithischian dinosaurs | No |
| Lagerpetids | Early relatives, now thought to be close to pterosaurs | No |
| Turtles | More distant reptile relatives | Yes |
| Lizards and snakes | Distant reptile relatives | Yes |
| Dimetrodon | Not a reptile in the strict sense; closer to mammals | No |