Complex sentence: The other wing contained a caravansary, with ballrooms and halls for meetings with outsiders who had to pay a fee in order to visit and meet the people of the Phalanx community.
Split into simpler sentences: The other wing contained a caravansary, with ballrooms and halls for meetings with outsiders. The outsiders had to pay a fee in order to visit and meet the people of the Phalanx community.