Dinosaurs ruled the Earth for millions of years during the Mesozoic Era until about 66 million years ago, when they mysteriously went extinct. They were giant prehistoric reptiles that lived long before humans existed and were not discovered by scientists until the 19th century. Dinosaurs came in many different kinds and fascinated people once their fossils were found and they were learned about.