The Williamite War. When the Catholic James II lost his English throne in the Glorious Revolution of 1688, he looked to Ireland to win it back. Ireland's Catholics, ruled by the Protestant minority and longing to undo the Cromwellian land settlement, rallied to him; its Protestants, above all in Ulster, shut the gates of Derry and held out for William of Orange. In March 1689 James landed at Kinsale with French money and officers, and Ireland became the battlefield of two kings - and of Europe, for Louis XIV of France backed James to keep William's England out of the continental war.
The siege of Derry made the war's legend: for a hundred and five days in 1689 the apprentice boys who had shut the gates and the citizens behind the walls held out through starvation until the relief ship Mountjoy broke the boom across the Foyle. Meanwhile James's Patriot Parliament in Dublin attainted the Protestant landholders wholesale. The decision came the following summer, when William himself landed with a great international army - Dutch, Danish, Huguenot, English and Ulster Protestant.
On 1 July 1690 (11 July by the modern calendar) the two armies met at the River Boyne, west of Drogheda. William forced the crossings at Oldbridge while his cavalry worked around the Irish flank; James's army, outflanked and outnumbered, retreated in good order, and James himself rode for Dublin, then France, earning among his own people the name Seamus an Chaca - James the... flighty. The Boyne was not a great battle by numbers - perhaps two thousand dead - but it decided the war and the century, and it is still commemorated every twelfth of July.
The war went on another year: William was bloodily repulsed at Limerick in 1690, the Jacobite army was broken at Aughrim in 1691 - the bloodiest battle ever fought in Ireland - and the war ended with the Treaty of Limerick, whose promised toleration the victors promptly set aside. The Protestant Ascendancy was secured for a century, the penal laws followed, and another generation of Irish soldiers - the Wild Geese - sailed away to fight in the armies of France and Spain.