In the mid-13th century, it became a Freie Reichsstadt, an independent and republican self-ruled member of the Holy Roman Empire, controlling an area of approximately 220 sqkm and 19 regional villages.