Whales, dolphins, and their relatives are called Cetaceans. They are ungulates even though they don't have hooves becasue they evolved from the same common ancestor that did have hooves 50 million years ago. Their hooves in front changed into flippers but their back legs shrank and shrank until they disappeared.