 Following the Protestant Reformation in 1528, the Commandery was secularized and its lands became the property of Bern.The former Commandery lands passed to the Bernese bailiff in Aarwangen.In 1711-13 Hieronymus von Erlach built Thunstetten Castle.