Dinosaurs were a diverse group of reptiles that lived during the Mesozoic Era, from about 245 to 66 million years ago. They inhabited all of Earth's continents and dominated terrestrial ecosystems for over 160 million years. While dinosaurs displayed an incredible variety of sizes and shapes, all dinosaurs are classified as archosaurs, a group that also includes modern birds and crocodilians.