Animals who live under human control or care are in captivity . Captivity can be used as a term meaning the keeping of either domesticated animals ( livestock , pets ) or wild animals .
Throughout history not only domestic animals as pets and livestock were kept in captivity and under human care , but also wild animals .