In 1656, tensions between Protestants and Catholics re-emerged and led to the outbreak of the First War of Villmergen. The Catholics were victorious and able to maintain their political dominance. The Toggenburg War in 1712 was a conflict between Catholic and Protestant cantons. According to the Peace of Aarau of 11 August 1712 and the Peace of Baden of 16 June 1718, the war ended with the end of Catholic hegemony. The Sonderbund War of 1847 was also based on religion.