The first mammals emerged during the reign of the dinosaurs, adopting a nocturnal lifestyle to stay safe. It was only until the dinosaurs were wiped off the face of the planet that certain mammals began to assert themselves during the daylight hours, according to new research.