After the French forces under Jean Victor Marie Moreau had campaigned Württemberg in the course of the War of the First Coalition in 1796, Duke Frederick II Eugene finally renounce all rights to Montbéliard. In 1797, the cantons were transferred to the département Mont-Terrible. The département was abolished in 1800, being annexed to the Haut-Rhin département. With the new arrangement put in place that year, there were more than 2 cantons (Audincourt and Montbéliard) in the District of Porrentruy. In 1814, Haut-Rhin lost the territories which had been part of Mont-Terrible and returned them to Switzerland, with the exception of Montbéliard, which was transferred to the department of Doubs.