The Deluge, a 20-year period of almost continual warfare, marked the turning point in attitudes. During the war with Sweden, when King John Casimir (Jan Kazimierz) fled to Silesia, the Icon of Mary of Częstochowa became the rallying point for military opposition to the Swedish forces. Upon his return to the country Kihn John Casimir crowned Mary a Queen of Poland. Despite these wars against Protestant, Orthodox, and Muslim neighbors, the Confederation of Warsaw held with one notable exception. In the aftermath of the Swedish withdrawal and truce, attitudes throughout the nobility (Catholic, Orthodox, and Protestant) turned against the Polish Brethren. In 1658 the Polish Brethren were forced to leave the country. They were permitted to sell their immovable property and take their movable property; however, it is still unknown whether they received fair-market value for their lands. In 1666, the Sejm banned apostasy from Catholicism to any other religion, under penalty of death. Finally, in 1717, the Silent Sejm banned non-Catholics from becoming deputies of the Parliament.