In January 1689, a Convention Parliament summoned by the Prince of Orange assembled, and much discussion relating to the appropriate course of action ensued. A party led by Lord Danby held that Mary should be sole monarch, as the rightful hereditary heir, while William and his supporters were adamant that a husband could not be subject to his wife. William wished to reign as a king, rather than function as a mere consort of a queen. For her part, Mary did not wish to be queen regnant, believing that women should defer to their husbands, and "knowing my heart is not made for a kingdom and my inclination leads me to a retired quiet life".On 13 February 1689, Parliament passed the Declaration of Right, in which it deemed that James, by attempting to flee on 11 December 1688, had abdicated the government of the realm, and that the Throne had thereby become vacant. Parliament offered the Crown not to James's eldest son, James Francis Edward (who would have been the heir apparent under normal circumstances), but to William and Mary as joint sovereigns. The only precedent for a joint monarchy dated from the sixteenth century: when Queen Mary I married Philip of Spain, it was agreed that the latter would take the title of king, but only during his wife's lifetime, and restrictions were placed on his power. William, however, would be king even after his wife's death, and "the sole and full exercise of the regal power [would be] executed by the said Prince of Orange in the names of the said Prince and Princess during their joint lives." The declaration was later extended to exclude not only James and his heirs (other than Anne) from the throne, but all Catholics, since "it hath been found by experience that it is inconsistent with the safety and welfare of this Protestant kingdom to be governed by a papist prince".The Bishop of London, Henry Compton (one of the "Immortal Seven"), crowned William and Mary together at Westminster Abbey on 11 April 1689. Normally, the Archbishop of Canterbury performs coronations, but the incumbent Archbishop, William Sancroft, although an Anglican, refused to recognise the validity of James II's removal. Neither William nor Mary enjoyed the ceremony; she thought it "all vanity" and William called it "Popish". On the same day, the Convention of the Estates of Scotland—which was much more divided than the English Parliament—finally declared that James was no longer King of Scotland, that "no Papist can be King or Queen of this Realm", that William and Mary would be joint sovereigns, and that William would exercise sole and full power. The following day, they were proclaimed king and queen in Edinburgh. They took the Scottish coronation oath in London on 11 May.Even after the declaration, there was still substantial support for James in Scotland. Viscount Dundee raised an army in the Scottish Highlands and won a convincing victory at Killiecrankie on 27 July. The huge losses suffered by Dundee's troops, however, coupled with his fatal wounding at the start of the battle, served to remove the only effective resistance to William and the uprising was quickly crushed, suffering a resounding defeat the next month at the Battle of Dunkeld.

Question: Which two people wed to establish a combined kingdom?
Answer: Queen Mary I married Philip of Spain