Immenstadt im Allgäu () is a town in Oberallgäu, the southernmost district of Bavaria, Germany, in the German Alps. First mentioned in a 1275 administrative tract, it was granted town privileges in 1360, which makes it one of the oldest towns in the area. It was the seat of the counts of Königsegg-Rothenfels until 1804. History While historians suspect the area to have been settled as early as the neolithic period, nothing is known of the origins of the modern-era town. The oldest datable source is a 1275 administrative tract compiled by the diocese of Konstanz. Immendorf was granted town (Stadt) privileges by the emperor Charles IV. in 1360, thus changing its name to Immenstadt, with an estimated population of 135. Immenstadt was affected by the German Peasants' War of 1525 and lost almost 70 per cent of its population to the plague during the Thirty Years' War (1618–48). During the sixteenth and seventeenth centuries, however, the town also gained economic wealth through the salt and linen trade, and it became the seat of the counts of Königsegg-Rothenfels in 1664. The counts were deposed during the French Revolutionary Wars, and Immenstadt briefly became Austrian before joining Bavaria in 1805. After major town fires in 1805 and 1844, Immenstadt entered the modern era in the 1850s, when the railroad arrived and the town's first factory opened shortly afterward. Immenstadt became a garrison town in the First World War and was bombed once in the Second World War, which cost six lives and destroyed several buildings along the railroad tracks. The town has enjoyed quiet prosperity since, with the exception of a flooding of parts of the municipal territory in 1999. The administrative reform of 1972 resulted in the incorporation of six nearby villages. Town Life Located at the Northern edge of the German Alps, Immenstadt has long been a tourist destination. Visitors are drawn to the nearby mountains for hiking and skiing, and to the Alpsee lakes for swimming and boating. The town hosts a major triathlon event in July of each year. Its local history museum, Hofmühle, resides in a former mill building. A second museum, the Mountain Farmers Museum, is located in the nearby village of Diepolz. A number of historical buildings can be found in the town center, including the town hall, the St. Josef church, and the town castle of the counts of Königsegg-Rothenfels, all of which