The Glorious Revolution occurred in England in 1688. James II became king after Charles II died without an heir, but he faced opposition for being Catholic and trying to assert absolute power. William of Orange invaded England with an army, with James fleeing. William and Mary then agreed to become joint monarchs on the condition that they pass the Bill of Rights, which limited royal power and strengthened Parliament.