Dinosaurs are a diverse group of animals of the clade
A clade is a group consisting of a species and all its descendants. In the terms of biological systematics, a clade is a single "branch" on the "tree of life". The idea that such a "natural group" of organisms should be grouped together and given a taxonomic name is central to biological...

 and superorder Dinosauria. They were the dominant terrestrial vertebrate
Vertebrates are animals that are members of the subphylum Vertebrata . Vertebrates are the largest group of chordates, with currently about 58,000 species described. Vertebrates include the jawless fishes, bony fishes, sharks and rays, amphibians, reptiles, mammals, and birds...

s for over 160 million years, from the late Triassic
The Triassic is a geologic period and system that extends from about 250 to 200 Mya . As the first period of the Mesozoic Era, the Triassic follows the Permian and is followed by the Jurassic. Both the start and end of the Triassic are marked by major extinction events...

 period (about 230 million years ago) until the end of the Cretaceous
The Cretaceous , derived from the Latin "creta" , usually abbreviated K for its German translation Kreide , is a geologic period and system from circa to million years ago. In the geologic timescale, the Cretaceous follows the Jurassic period and is followed by the Paleogene period of the...

 (about 65 million years ago), when the Cretaceous–Paleogene extinction event led to the extinction of all non-avian dinosaurs at the close of the Mesozoic era.