Glorious Revolution
When Charles II died without any legitimate children in 1685,  the Duke of York became King as James II in England and Ireland. He also became James VII in Scotland. He tried to give freedom of religion to Catholics and other non-Anglicans by making the Acts of Parliament invalid by royal decree. The Protestants did not like that. Several Protestant politicians and noblemen began talking with Mary's husband as early as 1687. In May 1688, James forced Anglican clergymen to read the Declaration of Indulgence, a statement that gave religious freedom to those who were not party of the Church of England. That was criticised as a first step to a return to Catholicism.