Deposed monarch James II of England lays siege to Derry.

The siege of Derry in 1689 was the first major event in the Williamite War in Ireland. The siege was preceded by a first attempt against the town by Jacobite forces on 7 December 1688 that was foiled when 13 apprentices shut the gates. This was an act of rebellion against James II.

The second attempt began on 18 April 1689 when James himself appeared before the walls with an Irish army led by Jacobite and French officers. The town was summoned to surrender but refused. The siege began. The besiegers tried to storm the walls, but all attacks failed. They then resorted to starving Derry out. They raised the siege and left when ships bringing food broke through to the town. The siege lasted 105 days from 18 April to 1 August 1689. It is commemorated yearly by the Protestant community.

James II and VII (14 October 1633O.S. – 16 September 1701) was King of England and King of Ireland as James II, and King of Scotland as James VII from the death of his elder brother, Charles II, on 6 February 1685. He was deposed in the Glorious Revolution of 1688. He was the last Catholic monarch of England, Scotland, and Ireland. His reign is now remembered primarily for struggles over religious tolerance, but it also involved struggles over the principles of absolutism and the divine right of kings. His deposition ended a century of political and civil strife in England by confirming the primacy of the English Parliament over the Crown.James inherited the thrones of England, Ireland, and Scotland from his brother with widespread support in all three countries, largely because the principles of eligibility based on divine right and birth were widely accepted. Tolerance of his personal Catholicism did not extend to tolerance of Catholicism in general, and the English and Scottish Parliaments refused to pass his measures. When James attempted to impose them by decree, this was met with opposition; some academics have however argued that it was a political principle, rather than a religious one, that ultimately led to his removal.In June 1688, two events turned dissent into a crisis; the first, on 10 June, was the birth of James's son and heir James Francis Edward, which raised the prospect of initiating a Roman Catholic dynasty and excluding his Anglican daughter Mary and her Protestant husband William III of Orange. The second was the prosecution of the Seven Bishops for seditious libel; this was viewed as an assault on the Church of England and their acquittal on 30 June destroyed his political authority in England. The anti-Catholic riots in England and Scotland that ensued led to a general feeling that only his removal from the throne could prevent a civil war.Leading members of the English political class invited William of Orange to assume the English throne; after he landed in Brixham on 5 November 1688, James's army deserted, and he went into exile in France on 23 December. In February 1689, a special Convention Parliament held that the king had "vacated" the English throne and installed William and Mary as joint monarchs, thereby establishing the principle that sovereignty derived from Parliament, not birth. James landed in Ireland on 14 March 1689 in an attempt to recover his kingdoms but, despite a simultaneous rising in Scotland, in April a Scottish Convention followed that of England, both finding that James had "forfeited" the throne and offered it to William and Mary. After his defeat at the Battle of the Boyne in July 1690, James returned to France, where he spent the rest of his life in exile at Saint-Germain, protected by Louis XIV. His opponents often portrayed him as an absolutist tyrant. By contrast, beginning in the 20th century, some historians praised him for advocating religious tolerance. More recent scholarship has tended to take a middle ground between these views.