Ex-situ conservation involves the conservation of biodiversity outside of its natural habitats, e.g., through captive breeding, seed banks, zoos, or botanical gardens. This conservation approach is often used to preserve the biodiversity of endangered species.