During the Swiss peasant war of 1653, Zwyer commanded the joint troops of the city of Lucerne and Uri, putting down the revolt in the Entlebuch valley in the canton of Lucerne. Three years later, he again commanded Catholic troops in the First war of Villmergen, when he led the defence of Rapperswil against attack from Zurich troops but refused to take direct offensive action himself.