cap ‧ tiv ‧ i ‧ ty /kæpˈtɪvəti, kæpˈtɪvɪti/ BrE AmE noun [uncountable]
when a person or animal is kept in a prison, ↑ cage etc and not allowed to go where they want OPP freedom :
The hostages were released from captivity.
in captivity
animals bred in captivity