IPA: /kæpˈtɪvɪti/
KK: /kæpˈtɪvɪti/
The condition of being held in a place against one's will, such as being imprisoned or confined.
The animals in the zoo live in captivity, away from their natural habitats.
Captivity is formed from "captivus" (meaning taken or seized) and the suffix "-ity" (meaning the state or condition of). The word refers to the state of being taken or held against one's will.
Think of being 'taken' ('captivus') and remember that 'captivity' means the state of being held or confined.