He began to grow fond of a city the inhabitants of which were polite, affable and beneficent.
= He began to grow fond of a city, of which the inhabitants were polite, affable and beneficent.