In 1811, he returned to Beromünster. Troxler represented Switzerland at the
Congress of Vienna in 1815. In 1820 he became a professor for philosophy and history at the
lyceum in
Lucerne but had to leave after a year due to political problems. He founded an educational institution in
Aarau and continued working as a physician. In 1830, he returned to teaching, this time in
Basel; but had to leave once again the next year due to political problems. In 1832 he was elected to the legislative assembly of the
canton of
Aargau. He became a professor at the newly established
University of Berne in 1834, where he stayed until 1850. In 1848, Troxler succeeded in altering the
Swiss Federal Constitution to include elements of the
United States Constitution. ==Death==