Bad Pyrmont (, also: ; West Low German: ) is a town in the district of Hamelin-Pyrmont, in Lower Saxony, Germany, with a population close to 19,000. It is located on the river Emmer, about west of the Weser. Bad Pyrmont is a popular spa resort that gained its reputation as a fashionable place for princely vacations in the 17th and 18th centuries. The town is also the center of the Religious Society of Friends (Quakers) in Germany. History Formerly called Pyrmont, it was the seat of a small county during much of the Middle Ages. The county gained its independence from the in 1194. Independence was maintained until the extinction of the comital line in 1494, when the county was inherited by the . In 1557, the county was inherited by Lippe, then by the County of Gleichen in 1583. In 1625, the county became part of the much larger County of Waldeck through inheritance. In 1668, the (Imperial Chamber Court) ruled against the Bishopric of Paderborn's claims that Pyrmont had been collateral in a loan, confirming the Count of Waldeck's rights over Pyrmont, who ceded the of Lügde — previously the county's capital — to the bishopric in compensation. In January 1712, the Count of Waldeck and Pyrmont was elevated to hereditary prince by Emperor Charles VI, the count having combined the two titles the previous year. For a brief period, from 1805 to 1812, Pyrmont was again a separate principality as a result of inheritance and partition after the death of the previous prince, but the two parts were united again in 1812. The principality of Waldeck-Pyrmont retained its status after the Congress of Vienna of 1815 and became a member of the German Confederation. In 1813, the inhabitants of Pyrmont began to protest at their lack of autonomy within Waldeck–Pyrmont and the separate constitutional nature of the two territories was confirmed the following year, until a formal union was established in 1849. From 1868 onward, the principality was administered by Prussia, but retained its legislative sovereignty. Prussian administration served to reduce administrative costs for the small state and was based on a ten-year contract that was repeatedly renewed. In 1871 it became a constituent state of the new German Empire. At the end of World War I, during the German Revolution the prince abdicated and Waldeck–Pyrmont became a free state within the Weimar Republic. On 30