Charles II died in 1685 and he was succeeded by his brother James II. During his lifetime Charles had always pledged loyalty to the Protestant Church of England, despite his private Catholic sympathies. James was openly Catholic. He attempted to lift restrictions on Catholics taking up public offices. This was bitterly opposed by Protestants in his kingdom. They invited William of Orange, a Protestant who had married Mary, daughter of James II and Anne Hyde to invade England and claim the throne. William assembled an army estimated at 15,000 soldiers (11,000 foot and 4000 horse) and landed at Brixham in southwest England in November, 1688. When many Protestant officers, including James's close adviser, John Churchill, 1st Duke of Marlborough, defected from the English army to William's invasion force, James fled the country. Parliament then offered the Crown to his Protestant daughter Mary, instead of his infant son (James Francis Edward Stuart), who was baptised Catholic. Mary refused the offer, and instead William and Mary ruled jointly, with both having the right to rule alone on the other's death. As part of the compromise in allowing William to be King—called the Glorious Revolution—Parliament was able to have the 1689 Bill of Rights enacted. Later the 1701 Act of Settlement was approved. These were statutes that lawfully upheld the prominence of parliament for the first time in English history. These events marked the beginning of the English constitutional monarchy and its role as one of the three elements of parliament. After the Treaty of Union in 1707, Acts of Parliament passed in the Parliament of England and the Parliament of Scotland created a new Kingdom of Great Britain and dissolved both parliaments, replacing them with a new Parliament of Great Britain based in the former home of the English parliament. The Parliament of Great Britain later became the Parliament of the United Kingdom in 1801 when the United Kingdom of Great Britain and Ireland was formed through the Act of Union 1800. Two European cities, both annexed from and later ceded to the Kingdom of France were represented in the Parliament as borough constituencies while they were English possessions: