Dinosaurs were a diverse group of reptiles that roamed the Earth during the Mesozoic Era, approximately 230 to 65 million years ago. They evolved into various species, ranging from the fierce Tyrannosaurus rex to the gentle giant Brachiosaurus. Dinosaurs adapted to numerous habitats, dominating the planet until their extinction.