The position of King of Ireland was contested by William III and James II between 1689 and 1691, after the Glorious Revolution of 1688. The Crown and Parliament Recognition Act 1689 made William King of Ireland, and this was reinforced by his victory at the Battle of the Boyne (part of the Williamite War in Ireland).