The document summarizes the evolution and history of reptiles. It states that reptiles arose from amphibians around 350 million years ago during the Carboniferous period. The earliest reptiles were small insect-eating lizards. Reptiles then diversified and became the dominant land vertebrates by the Permian period. During the Mesozoic era, various reptile groups flourished, especially dinosaurs which appeared in a wide variety of forms. However, most dinosaurs went extinct around 65 million years ago at the end of the Cretaceous period, likely due to an asteroid impact that caused climate change. Despite this mass extinction, modern reptile orders like turtles, lizards, snakes and crocodiles survived