Before the Dinosaurs
Towards the start of the Permian Period, about 300 million years ago, the earth's climate gradually became hotter and drier. This conditions became favored by small reptiles. When we compare amphibians to reptiles we find that the reptiles were better at regulating their own body temperature, laid their eggs on land, and did not need to stay close to bodies of water. These reptiles evolved and adapted to various ecological niches. The amphibians did not go away, they are still with us, but the reptiles became the dominant group.