Complex sentence: The extensive compound of the Istana was enclosed by a perimeter wall, and small kampung-style houses were built around it for the Sultan's kin, servants and artisans.
Split into simpler sentences: The extensive compound of the Istana was enclosed by a perimeter wall. Small kampong-style houses were built around this perimeter for the Sultan's kin, servants and artisans.