Dukes , administrators , and clergy lived in towns rather than isolated castles , absorbing the hinterland into communes , forerunners of the city-states .
The communes were safer than the outlying lands .