The Wealth of Nations by Part 3 Chapter 3 Page 14

royal demesnes concerning the most proper means of restraining the violence of the great lords. Their advice consisted of two different proposals. One was to erect a new order of jurisdiction, by establishing magistrates and a town council in every considerable town of his demesnes. The other was to form a new militia, by making the inhabitants of those towns, under the command of their own magistrates, march out upon proper occasions to the assistance of the king.

It is from this period, according to the French antiquarians, that we are to date the institution of the magistrates and councils of cities in France. It was during the unprosperous reigns of the princes of the house of Suabia that the greater part of the free towns of Germany received the first grants of their privileges, and that the famous Hanseatic league first became formidable.