The common ancestors of modern mammals were small, nocturnal creatures.