Dinosaurs lived between 230 and 65 million years ago, in a time known as the Mesozoic Era. This was many millions of years before the first modern humans, Homo sapiens, appeared. Scientists divide the Mesozoic Era into three periods: the Triassic, Jurassic and Cretaceous.