During the Cretaceous period, beginning about 145 million years ago, the continents continued to drift away from each other, so that the mammals, birds, and dinosaurs on different continents evolved separately and got more and more different from each other. As the continents separated, the climate got cooler and rainier, and there was even snow in some places and glaciers on high mountains.
But by the middle of the Cretaceous period, the movements of the tectonic plates caused a lot of huge volcanic eruptions all over the planet, and these volcanoes shot a lot of carbon dioxide into the air. The greenhouse effect of all this carbon dioxide warmed up the planet again, so that dinosaurs were able to live even close to the South Pole.
Flowers and flowering trees and grasses got to be more and more common during the Cretaceous period, helped along by the evolution of bees that carried pollen from one flower to another, and by the end of the Cretaceous most of the plants on earth were flowering ones. In addition to the bees, a lot of other new kinds of insects developed, like ants, grasshoppers, and termites.
Dinosaurs were the main kind of land animal all throughout the Cretaceous period. Mammals were still small and there weren't very many of them. Birds, on the other hand, did very well, and pretty much pushed aside the older pterodactyls by the end of the Cretaceous period. Some of these birds ate the new insects; others ate small mammals or fish.
About 65 million years ago, the Cretaceous period suddenly ended when a huge meteorite smashed into the Earth. It hit part of what is now Mexico and made an enormous crater more than 110 miles across (180 kilometers). The meteorite itself must have been more than six miles across (10 km). Nearly all of the dinosaurs died - snakes and crocodiles were among the few reptiles to survive. But some of the mammals and birds also survived into the Tertiary period.