Complex sentence: Its natural habitat is swamps and so is threatened by habitat loss.
Split into simpler sentences: Its natural habitat is swamps. It is threatened by habitat loss.