The Glorious Revolution occurred in 1688-1689 when King James II attempted to reinstall Roman Catholicism as England's official religion, angering the Whig and Tory parties who invited William of Orange to take the throne. Parliament then offered the crown to William and Mary, enacting the Bill of Rights that declared James had abandoned the government and forbade future monarchs from being Catholic or marrying Catholic partners, establishing England as a constitutional monarchy.