Thanks to the Cordial Agreement, Great Britain and France gave the beginnings of an alliance and, in the concluding terms of the agreement, promised to help each other in obtaining the implementation of the clauses of this declaration on Egypt and Morocco. The agreement was, however, terminated shortly thereafter by the commitment of the two nations to support each other militarily; this aspect of the alliance would come later. As his life neared its end, William, like many other contemporary European leaders, felt concerned about the question of succession to the throne of Spain, which resulted in vast territories in Italy, the Netherlands and the New World. The King of Spain, Charles II, was an invalid with no prospect of children; Some of his closest relatives were Louis XIV (king of France) and Leopold I, emperor of the Holy Roman Empire. William tried to prevent the Spanish heritage from surrendering to one of the two monarchs because he feared that such a catastrophe would disturb the balance of power. William and Louis XIV accepted the First Treaty of Division (1698) which provided for the division of the Spanish Empire: Joseph Ferdinand, elector of Bavaria, received Spain, while France and the Holy Roman Emperor would share the remaining territories among themselves.  Charles II accepted the appointment of Joseph Ferdinand to his heir, and the war seemed diverted.  William`s main achievement was to contain France when it was able to impose its will in much of Europe. His goal in life was above all to oppose Louis XIV of France. These efforts continued after his death during the Spanish War of Succession. Another important consequence of William`s rule in England was the end of a bitter conflict between the Crown and Parliament, which has lasted since the accession of Stuart`s first English monarch, Jakob I, in 1603.
In the 1640s, the conflict for royal and parliamentary power led to the English Civil War and the Glorious Revolution of 1688.  However, during William`s reign, the conflict was settled in favour of Parliament by the 1689 Bulletin of Rights, the Triennial Act 1694 and the Act of Settlement 1701.  After William`s return to England, his close friend, Dutch General Godert de Ginkell, who had accompanied William to Ireland and had commanded a Dutch cavalry at the Battle of the Boyne, was appointed commander-in-chief of William`s troops in Ireland and entrusted the continuation of the war there. Ginkell took command of Ireland in the spring of 1691, and after several successive battles he succeeded in conquering both Galway and Limerick, effectively suppressing Jacobean troops in Ireland within a few months. After difficult negotiations, a surrender was signed on October 3, 1691 – the Treaty of Limerick. Thus ended the Wilhelmiten pacification of Ireland, and for his services the Dutch general received formal thanks from the House of Commons, and the title of Earl of Athlone was awarded by the king.