( ( The habitat ) ( ( is ( ( the ( physical environment ) ) ( ( ( ( in which ) ( ( a species ) lives ) ) and ) ( ( to which ) ( it ( is adapted ) ) ) ) ) ) . ) )
(ROOT (S (NP (DT The) (NN habitat)) (VP (VBZ is) (NP (NP (DT the) (JJ physical) (NN environment)) (SBAR (SBAR (WHPP (IN in) (WHNP (WDT which))) (S (NP (DT a) (NNS species)) (VP (VBZ lives)))) (CC and) (SBAR (WHPP (TO to) (WHNP (WDT which))) (S (NP (PRP it)) (VP (VBZ is) (VP (VBN adapted)))))))) (. .)))
The habitat is the physical environment in which a  species lives and to which it is adapted.
(ROOT (S (NP (PRP You)) (VP (VBP call) (NP (DT the) (JJ physical) (NN environment)) (PP (PP (IN in) (SBAR (WHNP (WDT which)) (S (NP (DT a) (NNS species)) (VP (VBZ lives))))) (CC and) (PP (TO to) (SBAR (WHNP (WDT which)) (S (NP (PRP it)) (VP (VBZ is) (VP (VBN adapted) (NP (NN habitat))))))))) (. .)))