Dinosaurs first appeared around 230 million years ago, coexisting with large crocodile relatives and massive herbivores.