The following year, 1705, the allies moved against Philip V. by two roads,—from Lisbon upon Madrid, and by way of Barcelona. The former attack, though based upon the sea, was mainly by land, and resultless; the Spanish people in that quarter showed unmistakably that they would not welcome the king set up by foreign powers. It was different in Catalonia. Carlos III. went there in person with the allied fleet. The French navy, inferior in numbers, kept in port. The French army also did not appear. The allied troops invested the town, aided by three thousand seamen and supported by supplies landed from the fleet, which was to them both base of supplies and line of communications. Barcelona surrendered on the 9th of October; all Catalonia welcomed Carlos, and the movement spread to Aragon and Valencia, the capital of the latter province declaring for Carlos.
The following year, 1706, the French took the offensive in Spain on the borders of Catalonia, while defending the passes of the mountains toward Portugal. In the absence of the allied fleet, and of the succors which it brought and maintained, the resistance was weak, and Barcelona was again besieged, this time by the French party supported by a French fleet of thirty sail-of-the-line and numerous transports with supplies from the neighboring port of Toulon. The siege, begun April 5, was going on hopefully; the Austrian claimant himself was within the walls, the prize of success; but on the 10th of May the allied fleet appeared, the French ships retired, and the siege was raised in disorder. The Bourbon claimant dared not retreat into Aragon, and so passed by Roussillon into France, leaving his rival in possession. At the same time there moved forward from Portugal—that other base which the sea power of the English and Dutch at once controlled and utilized—another army maintained by the subsidies earned from the ocean. This time the western attack was more successful; many cities in Estremadura and Leon fell, and as soon as the allied generals learned the raising of the siege of Barcelona, they pressed on by way of Salamanca to Madrid. Philip V., after escaping into France, had returned to Spain by the western Pyrenees; but on the approach of the allies he had again to fly, leaving to them his capital. The Portuguese and allied troops entered Madrid, June 26, 1706. The allied fleet, after the fall of Barcelona, seized Alicante and Cartagena.
So far success had gone; but the inclinations of the Spanish people had been mistaken, and the strength of their purpose and pride, supported by the natural features of their country, was not yet understood. The national hatred to the Portuguese was aroused, as well as the religious dislike to heretics, the English general himself being a Huguenot refugee. Madrid and the surrounding country were disaffected, and the south sent the Bourbon king assurance of its fidelity. The allies were not able to remain in the hostile capital, particularly as the region around was empty of supplies and full of guerillas. They retired to the eastward, drawing toward the Austrian claimant in Aragon. Reverse followed reverse, and on the 25th of April, 1707, the allied army was disastrously overthrown at Almansa, losing fifteen thousand men. All Spain fell back again into the power of Philip V., except the province of Catalonia, part of which also was subdued. The next year, 1708, the French made some progress in the same quarter, but were not able to attack Barcelona; Valencia and Alicante, however, were reduced.
The year 1707 was not marked by any naval event of importance. During the summer the allied fleets in the Mediterranean were diverted from the coast of Spain to support an attack upon Toulon made by the Austrians and Piedmontese. The latter moved from Italy along the coast of the Mediterranean, the fleet supporting the flank on the sea, and contributing supplies. The siege, however, failed, and the campaign was inconclusive. Returning home, the admiral, Sir Cloudesley Shovel, with several ships-of-the-line, was lost on the Scilly Islands, in one of those shipwrecks which have become historical.
In 1708 the allied fleets seized Sardinia, which from its fruitfulness and nearness to Barcelona became a rich storehouse to the Austrian claimant, so long as by the allied help he controlled the sea. The same year Minorca, with its valuable harbor, Port Mahon, was also taken, and from that time for fifty years remained in English hands. Blocking Cadiz and Cartagena by the possession of Gibraltar, and facing Toulon with Port Mahon, Great Britain was now as strongly based in the Mediterranean as either France or Spain; while, with Portugal as an ally, she controlled the two stations of Lisbon and Gibraltar, watching the trade routes both of the ocean and of the inland sea. By the end of 1708 the disasters of France by land and sea, the frightful sufferings of the kingdom, and the almost hopelessness of carrying on a strife which was destroying France, and easily borne by England, led Louis XIV. to offer most humiliating concessions to obtain peace. He undertook to surrender the whole Spanish monarchy, reserving only Naples for the Bourbon king. The allies refused; they demanded the abandonment of the whole Spanish Empire without exception by the Duke of Anjou, refusing to call him king, and added thereto ruinous conditions for France herself. Louis would not yield these, and the war went on.
During the remaining years the strenuous action of the sea power of the allies, which had by this time come to be that of Great Britain alone, with little help from Holland, was less than ever obtrusive, but the reality of its effect remained. The Austrian claimant, confined to Catalonia for the most part, was kept in communication with Sardinia and the Italian provinces of Germany by the English fleet; but the entire disappearance of the French navy and the evident intention on the part of Louis to keep no squadrons at sea, allowed some diminution of the Mediterranean fleet, with the result of greater protection to trade. In the years 1710 and 1711 expeditions were also made against the French colonies in North America. Nova Scotia was taken, but an attempt on Quebec failed.
During the winter of 1709 and 1710 Louis withdrew all the French troops from Spain, thus abandoning the cause of his grandson. But when the cause of France was at the very lowest, and it seemed as though she might be driven to concessions which would reduce her to a second-class power, the existence of the coalition was threatened by the disgrace of Marlborough, who represented England in it. His loss of favor with the queen was followed by the accession to power of the party opposed to the war, or rather to its further continuance. This change took place in the summer of 1710, and the inclination toward peace was strengthened both by the favorable position in which England then stood for treating, and by the heavy burden she was bearing; which it became evident could bring in no further advantages commensurate to its weight. The weaker ally, Holland, had gradually ceased to contribute her stipulated share to the sea forces; and although far-sighted Englishmen might see with complacency the disappearance of a rival sea power, the immediate increase of expense was more looked to and felt by the men of the day. The cost both of the continental and Spanish wars was also largely defrayed by England's subsidies; and while that on the continent could bring her no further gain, it was seen that the sympathies of the Spanish people could not be overborne in favor of Carlos III. without paying more than the game was worth. Secret negotiations between England and France soon began, and received an additional impulse by the unexpected death of the Emperor of Germany, the brother of the Austrian claimant of the Spanish throne. There being no other male heir, Carlos became at once emperor of Austria, and was soon after elected emperor of Germany. England had no more wish to see two crowns on an Austrian head than on that of a Bourbon.
The demands made by England, as conditions of peace in 1711, showed her to have become a sea power in the purest sense of the word, not only in fact, but also in her own consciousness. She required that the same person should never be king both of France and Spain; that a barrier of fortified towns should be granted her allies, Holland and Germany, as a defensive line against France; that French conquests from her allies should be restored; and for herself she demanded the formal cession of Gibraltar and Port Mahon, whose strategic and maritime value has been pointed out, the destruction of the port of Dunkirk, the home nest of the privateers that preyed on English commerce, the cession of the French colonies of Newfoundland, Hudson's Bay, and Nova Scotia, the last of which she held at that time, and finally, treaties of commerce with France and Spain, and the concession of the monopoly of the slave trade with Spanish America, known as the Asiento, which Spain had given to France in 1701.
Negotiations continued, though hostilities did not cease; and in June, 1712, a four months' truce between Great Britain and France removed the English troops from the allied armies on the continent, their great leader Marlborough having been taken from their head the year before. The campaign of 1712 was favorable to France; but in almost any event the withdrawal of Great Britain made the end of the war a question of but a short time. The remonstrances of Holland were met by the reply that since 1707 the Dutch had not furnished more than one third their quota of ships, and taking the war through, not over one half. The House of Commons in an address to the throne in 1712 complained that—
"The service at sea hath been carried on through the whole course of the war in a manner highly disadvantageous to your Majesty's kingdom, for the necessity requiring that great fleets should be fitted out every year for maintaining a superiority in the Mediterranean and for opposing any force which the enemy might prepare either at Dunkirk or in the ports of west France; your Majesty's readiness, in fitting out your proportion of ships for all parts of that service, hath not prevailed with Holland, which has been greatly deficient every year in proportion to what your Majesty hath furnished.... Hence your Majesty hath been obliged to supply those deficiencies with additional reinforcements of your own ships, and your Majesty's ships have been forced in greater numbers to continue in remote seas, and at unseasonable times of the year, to the great damage of the navy. This also hath straitened the convoys for trade; the coasts have been exposed for want of cruisers; and you have been disabled from annoying the enemy in their most beneficial commerce with the West Indies, whence they received those vast supplies of treasure, without which they could not have supported the expenses of the war."