Dinosaurs existed on Earth for around 160 million years, from the Triassic period (about 230 million years ago) until the end of the Cretaceous period (about 66 million years ago). During this time, dinosaurs evolved into a diverse range of species and dominated the land ecosystems of the planet.