Elephants are distantly related to sea cows, which are large aquatic mammals. Early ancestors in the Palaeocene and Eocene were small, semi-aquatic animals. By the Miocene several groups of large mainly forest-dwelling elephants evolved, the gomphotheres and deinotheres. Their teeth show little wear, indicating a diet of soft, nongritty, forest vegetation.