Complex sentence: The inner yard had wooden galleries, which ran around the inner wall; these galleries were used to access various support facilities without going inside the palace itself.
Split into simpler sentences: The inner yard had wooden galleries, which ran around the inner wall. These galleries were used to access various support facilities without going inside the palace itself.