I think their closest land relatives are hippos, (Which makes them both related to horses) but I don't know if their common ancestor also gave rise to bears/cats/wolves.
In any case, if we're all mammals we all came from the same common ancestor not so long ago!