In 1592, the Valangin fiefs returned to the County of Neuchâtel, but neither the legal status of residents of the Mairie of Le Locle or its function as a district court was affected. The 1476 alliance with Bern remained in effect and during the Thirty Years' War as well as the invasion of Louis XIV in Franche-Comté, Bernese soldiers came to support the town. Le Locle sent soldiers to support their ally in 1712 during the battles of Mellingen and Villmergen.