Dinosaurs are part of a diverse group of animals that appeared in the Triassic period, over 231 million years ago.