Dukes , administrators , and clergy lived in towns rather than isolated castles , absorbing the hinterland into communes , forerunners of the city-states .
The clergy often lived in isolated castles away from the towns .