Rainsborough was removed from his post as captain. With both the coastal fortresses and the navy now under Royalist control, Parliament feared that foreign forces might be landed along the coast or aid sent to the Scots. Parliament defeated the wider insurgency at the Battle of Maidstone at the start of June and then sent a force under the command of Colonel Nathaniel Rich to deal with Deal and the other castles along the Downs. Walmer Castle was the first to be besieged and surrendered on 12 July. Deal, which had been resupplied by the Royalists from the sea, was besieged in July. A Royalist fleet bombarded the Parliamentarian positions and temporarily landed a force of 1,500 Flemish mercenaries in support of the revolt, but a shortage of money forced their return to the Continent. The garrison then carried out a surprise attack on their besiegers but were fought back with some losses. The fleet, under the command of Prince Charles, attempted to land a fresh force in August, but despite three attempts the operation failed and suffered heavy losses. After news arrived of the Royalist defeat at Preston, Deal surrendered on 20 August and artillery assaults then began on Sandown, leading the remaining garrisons to surrender. Rich became the new Captain and reported the castle had been badly damaged during the conflict, being "much torn and spoiled with the granades", and he estimated repairs work would cost at least £500. A governor, Samuel Taverner, was appointed, supported by a corporal and twenty soldiers. In light of the Dutch threat, Deal Castle was maintained and kept equipped with powder, and was reinforced with earthworks and soldiers at the start of the First Anglo-Dutch War in 1652. Following the Stuart Restoration in 1660, the garrison was reduced in size and their pay reduced, but the castle continued to play an important role in defending the Downs during the Second and Third Anglo-Dutch Wars, supported by local trained bands. Byng attempted to reclaim his former captainship under the new regime, and may have been briefly reappointed in early 1660. Following the December 1688 Glorious Revolution which removed James II, the townsfolk of Deal seized the castle in support of William of Orange, and took steps to defend the Downs against a feared Irish invasion which never materialised. 18th–21st centuries Deal Castle continued to be used as a military fortification throughout the 18th