Sheep and goats are closely related: both are in the subfamily Caprinae. However, they are separate species, so hybrids rarely occur, and are always infertile.