the Nine Years War in which English forces, led by Charles Blount, 8th Baron Mountjoy, defeated the rebel Irish force, led by Hugh O'Neill, 2nd Earl of Tyrone and Red Hugh O'Donnell, two Gaelic princes from Ulster. The Irish forces were allied with the forces of King Felipe III of Spain, who was also King of Portugal and the Algarves. In September 1607, a few years after this battle, the Flight of the Earls took place from Rathmullan in County Donegal in West Ulster in which a number of the native Irish aristocrats, including both Hugh O'Neill, 2nd Earl of Tyrone and Rory O'Donnell, 1st Earl of Tyrconnell, abandoned their lands and fled to Continental Europe. Shortly after the battle, James's Fort was built to protect the harbour. In 1649, Prince Rupert of the Rhine declared Charles II as King of England, Scotland and Ireland at St Multose's Church in Kinsale upon hearing of the execution of Charles I in London by Parliamentarian forces during the English Civil War. The Virginia trading fleet made this harbour the safest destination during their wartime voyages. Charles Fort, located at Summer Cove and dating from 1677 in the reign of Charles II, is a bastion-fort that guards the entrance to Kinsale Harbour. It was built to protect the area and specifically the harbour from the use by the French and Spanish in the event of a landing in Ireland. James's Fort, which dates from the reign of King James VI and I, is located on the other side of the cove, on the Castlepark peninsula. An underwater chain used to be strung between the two forts across the harbour mouth during times of war to scuttle enemy shipping by ripping the bottoms out of incoming vessels. King James II and VII (he was King James II of England and Ireland and King James VII of Scots) landed at Kinsale in March 1689 with a force of 2,500 men, raised with the support of King Louis XIV, as part of his campaign to regain power in England, Scotland and Ireland. In 1690, James II and VII returned to exile in France from Kinsale, following his defeat at the Battle of the Boyne by William III of England (also Stadtholder William III of the House of Orange-Nassau) after the 'Glorious Revolution' (or Revolution of 1688) in England against the background of wars involving France under