Districts of Cologne within city limits), while 174,87 km² (43.2 percent) lie right of the Rhine. In regard to population, Cologne is the largest city in the state of North Rhine-Westphalia and the fourth largest city in Germany. Since the city's foundation in 38 BC, Cologne grew through numerous extensions and incorporation of surrounding municipalities. Since the construction of the Medieval wall in 1180, the area of the old imperial city of Cologne has not changed for more than 600 years and was only extended over the old city walls in 1794, just short before the arrival of French troops and Cologne's incorporation
Cologne War 1288. After that, the archbishop and Prince-elector used the smaller cities of Bonn, south of Cologne, and Brühl, south of Cologne, on the Rhine River, as his capital and residence; by 1580, both his residence and the capital were located in Bonn. Although the city of Cologne obtained its status as a free imperial city in 1478, the Archbishop of Cologne retained judicial rights in the city; he acted as a Vogt, or reeve, and reserved the right of blood justice, or "Blutgericht"; only he could impose the so-called blood punishments, which included capital punishments, but also physical punishments that