The valley is situated so that it is surrounded on both sides with tall hills.
(The valley; is situated; so that it is surrounded on both sides with tall hills) (it; is surrounded; on both sides with tall hills)
The valley it
is situated is surrounded
so that it is surrounded on both sides with tall hills
on both sides with tall hills