Complex sentence: The upper city formed the administrative, religious, and primary residential districts while the lower city was the commercial center, with a port and market.
Split into simpler sentences: The upper city formed the administrative, religious, and primary residential districts. The lower city was the commercial center, with a port and market.