Animal captivity is the confinement of domestic and wild animals. More specifically, animals that are held by humans and prevented from escaping are said to be in captivity. The term animal captivity is usually applied to wild animals that are held in confinement, but this term may also be used generally to describe the keeping of domesticated animals such as livestock or pets. This may include, for example, animals in farms, private homes, zoos, and laboratories. Animal captivity may be categorized according to the particular motives, objectives, and conditions of the confinement.
All throughout history, domestic animals like pets and livestock were kept in captivity and tended by humans. However, pets and livestock were not the only animals to be put in captivity and receive human care because wild animals had this as well. Despite the fact that wild animals have been harbored by humans for thousands of years, this captivity has not always come close to present zoos. Some were failed domestication attempts. Furthermore, the wealthy, predominantly the aristocrats and kings, collected wild animals for various reasons. The affluent built the first zoos as personal collections to demonstrate their dominance and wealth. These private collections of animals were known as menageries. Contrary to domestication, the ferociousness and natural behaviour of the wild animals were preserved and exhibited. Today, zoos claim to have other reasons for keeping animals under human care: conservation, education and science.
Captive animals, especially those not domesticated, sometimes can develop abnormal behaviours.
One type of abnormal behaviour is stereotypical behaviors, i.e. repetitive and apparently purposeless motor behaviors. Examples of stereotypical behaviours include pacing, self-injury, route tracing and excessive self-grooming. These behaviors are associated with stress and lack of stimulation. Animals that exhibit this tend to suffer from zoochosis, as it is manifested in stereotypical behaviors.