Overview
In the Holy Roman Empire, the collective term free and imperial cities, briefly worded free imperial city, was used from the fifteenth century to denote a self-ruling city that had a certain amount of autonomy and was represented in the Imperial Diet. An imperial city held the status of Imperial immediacy, and as such, was subordinate only to the Holy Roman Emperor, as opposed to a territorial city or town which was subordinate to a territorial princebe it an ecclesiastical lord (prince-bishop, prince-abbot) or a secular prince (duke, margrave, count, etc.).
Origin
The evolution of some German cities into self-ruling constitutional entities of the Empire was slower than that of the secular and ecclesiastical princes. In the course of the 13th and 14th centuries, some cities were promoted by the emperor to the status of Imperial Cities, essentially for fiscal reasons. Those cities, which had been founded by the German kings and emperors in the 10th through 13th centuries and had initially been administered by royal/imperial stewards, gradually gained independence as their city magistrates assumed the duties of administration and justice; some prominent examples are Colmar, Haguenau and Mulhouse in Alsace or Memmingen and Ravensburg in upper Swabia.
The Free Cities were those, such as Basel, Augsburg, Cologne or Strasbourg, that were initially subjected to a prince-bishop and, likewise, progressively gained independence from that lord. In a few cases, such as in Cologne, the former ecclesiastical lord continued to claim the right to exercise some residual feudal privileges over the Free City, a claim that gave rise to constant litigation almost until the end of the Empire.
Over time, the difference between Imperial Cities and Free Cities became increasingly blurred, so that they became collectively known as "Free Imperial Cities", or "Free and Imperial Cities", and by the late 15th century, many cities included both "Free" and "Imperial" in their name. Like the other Imperial Estates, they could wage war, make peace, and control their own trade, and they permitted little interference from outside. In the later Middle Ages, a number of Free Cities formed City Leagues, such as the Hanseatic League or the Alsatian , to promote and defend their interests.
From Wikipedia (CC BY-SA 4.0).