Dinosaurs were the dominant vertebrate animals of terrestrial ecosystems for over 160 million years, from the late Triassic period (about 230 million years ago) until the end of the Cretaceous period (65 million years ago), when most of them became extinct in the Cretaceous-Tertiary extinction event. The 10000 living species of birds may be classified as dinosaurs.
The term "dinosaur" was coined in 1842 by Sir Richard Owen and derives from Greek δεινός (deinos) "terrible, powerful, wondrous" + σαῦρος (sauros) "lizard". It is sometimes used informally to describe other prehistoric reptiles, such as the pelycosaur Dimetrodon, the winged pterosaurs, and the aquatic ichthyosaurs, plesiosaurs and mosasaurs (such as Hainosaurus), although none of these animals were dinosaurs. Through the first half of the 20th century, most of the scientific community believed dinosaurs to have been slow, unintelligent cold-blooded animals. Most research conducted since the 1970s, however, has supported the view that dinosaurs were active animals with elevated metabolisms and numerous adaptations for social interaction. The resulting transformation in the scientific understanding of dinosaurs has gradually filtered into popular consciousness.
The 1861 discovery of the primitive bird Archaeopteryx first suggested a close relationship between dinosaurs and birds. Aside from the presence of fossilized feather impressions, Archaeopteryx was very similar to the contemporary small predatory dinosaur Compsognathus. Research has since identified theropod dinosaurs as the most likely direct ancestors of birds; most paleontologists today regard birds as the only surviving dinosaurs, and some suggest that dinosaurs and birds should be grouped into one biological class. Aside from birds, crocodilians are the only other close relatives of dinosaurs to have survived until the present day. Like dinosaurs and birds, crocodilians are members of Archosauria, a group of reptiles that first appeared in the very late Permian and came to predominate in the mid-Triassic.