 Annexed by Napoleonic France in 1802, it was returned to Switzerland by the Congress of Vienna, though the French continued to call for its retrocession.After several attempts to acquire the area were firmly rebuffed by the Swiss, France decided in 1862 to offer a nearby section of its own territory, comparable in size, in exchange.The Swiss agreed, and a treaty was accordingly signed in Bern by which slightly less than changed hands.