With enormous predators like Tyrannosaurus rex skulking around in the daytime it is not surprising that the first mammals chose to live under the cover of darkness.
In fact, a new study, from University College London has found that our ancestors did not emerge from the shadows until after the dinosaurs became extinct, around 66 million years ago.
Before then, all mammals were nocturnal, sleeping in the daytime and hunting or foraging at night, new data suggests.
Researchers used computer algorithms to analyse details from 2415 species of living mammals to reconstruct the activity patterns of their ancestors.