The term is "captive breeding." Captive breeding is a conservation technique in which endangered or threatened species are bred in controlled environments such as zoos, botanical gardens, or wildlife sanctuaries to preserve genetic diversity, prevent extinction, and support population recovery.