Complex sentence: In the wild they are shy animals and flee from humans, while in captivity they may become trusting.
Split into simpler sentences: In the wild they are shy animals and flee from men. But in captivity they may become trusting.