The battle of Málaga, also known as the battle of Vélez-Málaga, was a major fleet action which took place during the War of the Spanish Succession between an Anglo-Dutch fleet and a French naval force on 24 August 1704. Both sides fought an intense engagement before the Anglo-Dutch fleet withdrew the next day. The French subsequently returned to Toulon, transforming the battle from a tactical stalemate into a strategic defeat, as they would not put out to sea again for the duration of the conflict. Occurring soon after the Anglo-Dutch capture of Gibraltar a few weeks prior, the battle served as one of the numerous engagements which took place for control over the settlement during the war. In 1701, the War of the Spanish Succession broke out, pitting the Bourbon kingdoms of France and Spain against Grand Alliance, which included the English and Dutch. An Anglo-Dutch fleet under Sir George Rooke was sent into the Mediterranean in 1704, capturing Gibraltar on 4 August. Upon receiving news of the capture, the French dispatched a fleet to recapture the settlement; Rooke received intelligence that the French had put to sea, and mobilised his ships to intercept them. The Anglo-Dutch fleet spotted the French on 22 August, engaging them two days later. Both sides exchanged broadsides for several hours before the Anglo-Dutch fleet ran low of ammunition and withdrew the next day. After the battle, both fleets returned home; strategically, the battle proved to be a success for the Grand Alliance, which saw their occupation of Gibraltar continue for the remainder of the conflict. Rooke unloaded as much men and material as he could before returning to England on 24 September. Upon receiving news of the loss of Gibraltar, Spanish Bourbons quickly moved to recapture it, beginning an investment in late September. However, several attempts to storm the settlement were repulsed by its garrison, and the siege was eventually lifted in May 1705. The battle of Málaga went on to play a role in solidifying the importance of a defensive line of battle in British and French tactical thinking. Background In 1701, the War of the Spanish Succession broke out, pitting an anti-French coalition known as the Grand Alliance on one side and the Bourbon kingdoms of France and Spain on the other. The conflict erupted over a dispute on whether Bourbon prince Philip of Anjou, supported by King Louis XIV of France,