Although mammals had evolved for about 150 million years before the end of the Cretaceous period, they barely resembled the mammals we know today. The earliest mammals were tiny, usually insect eaters, and mostly nocturnal. These characteristics allowed them to coexist with the dinosaurs. The extinction of the dinosaurs left environments full of opportunities for other types of animals. In the first 10 million years following the dinosaurs’ extinction, more than 4000 mammal species had evolved, including whales, bats, rodents, and primates.