The affinities of the Hippopotamidae are at the core of the phylogeny of Cetartiodactyla (even-toed mammals: cetaceans, ruminants, camels, suoids, and hippos). Molecular phylogenies support Cetacea as sister group of the Hippopotamidae, implying a long ghost lineage between the earliest cetaceans (∼53 Ma) and the earliest hippopotamids (∼16 Ma). Morphological studies have proposed two different sister taxa for hippopotamids: suoids (notably palaeochoerids) or anthracotheriids. Evaluating these phylogenetic hypotheses requires substantiating the poorly known early history of the Hippopotamidae. Here, we undertake an original morphological phylogenetic analysis including several “suiform” families and previously unexamined early Miocene taxa to test previous conflicting hypotheses. According to our results,
Morotochoerus ugandensis
and
Kulutherium rusingensis
, until now regarded as the sole African palaeochoerid and the sole African bunodont anthracotheriid, respectively, are unambiguously included within the Hippopotamidae. They are the earliest known hippopotamids and set the family fossil record back to the early Miocene (∼21 Ma). The analysis reveals that hippopotamids displayed an unsuspected taxonomic and body size diversity and remained restricted to Africa during most of their history, until the latest Miocene. Our results also confirm the deep nesting of Hippopotamidae within the paraphyletic Anthracotheriidae; this finding allows us to reconstruct the sequence of dental innovations that links advanced selenodont anthracotheriids to hippopotamids, previously a source of major disagreements on hippopotamid origins. The analysis demonstrates a close relationship between Eocene choeropotamids and anthracotheriids, a relationship that potentially fills the evolutionary gap between earliest hippopotamids and cetaceans implied by molecular analyses.