 From 1404 the Werdenberg estates were a possession of the Counts of Montfort, succeeded by Count John Peter of Sax-Misox in 1483.In 1517 the area was acquired by the citizens of Glarus who implemented the Protestant Reformation.Buchs was incorporated into the Canton of Linth of the short-lived Napoleonic Helvetic Republic from 1798 to 1803, when it passed to the newly established Canton of St. Gallen.