The wars of the 18th and 19th century bypassed the town, even though its inhabitants participated in the Tyrolean Rebellion against Napoleon. Following the Treaty of Pressburg in 1805, Kitzbühel once more became part of Bavaria; it was reunited with Tyrol after the fall of Napoleon at the Congress of Vienna. Until 1918, the town (named "KITZBICHL" before 1895) was part of the Austrian monarchy (Austria side after the compromise of 1867), head of the district of the same name, one of the 21 "Bezirkshauptmannschaften" in the Tyrol province.