Dinosaurs lived throughout the Mesozoic Era, which began 245 million years ago and lasted for 180 million years. It is sometimes called the Age of the Reptiles. The era is divided into three periods. During the Triassic period, all land on Earth existed as one enormous mass.