The Spanish Army of the Peninsular War refers to the Spanish military units that fought against France's Grande Armée during a period which coincided with what is also termed the Spanish War of Independence ().

In June 1808, the Spanish Army numbered 136,824 men and officers (including 30,527 militiamen assigned to provincial battalions). This figure also includes General La Romana's 15,000-man Division of the North garrisoned in Denmark.

Spanish Army (Peninsular War)

In 1808, the first year of the armed conflict against the French Army, at least two hundred new Spanish infantry regiments were created, most of which consisted of only one battalion.

Spanish Army (Peninsular War)

These regular troops and local militias which, in the case of Catalonia, ran to several thousand well-organised miquelets, or somatenes, who had already proved their worth in the Catalan revolt of 1640 and in the War of the Spanish Succession (1701–1714), were supplemented throughout the country by the guerrilla and were a constant source of harassment to the French army and its lines of communication. So much so that, between the new year and the middle of February 1809, General St. Cyr calculated that his troops had used up 2,000,000 cartridges in petty skirmishes with the miqueletes between Tarragona and Barcelona.

Spanish Army (Peninsular War)

At some battles, such as the Battle of Salamanca, the Army of Spain fought side-by-side with their allies of the Anglo-Portuguese Army, led by General Wellesley (who would not become the Duke of Wellington until after the Peninsular War was over).

Background

Under the terms of the Treaty of Fontainebleau, which divided the Kingdom of Portugal and all Portuguese dominions between France and Spain, Spain agreed to augment, by three Spanish columns (numbering 25,500 men), the 28,000 troops Junot was already leading through Spain to invade Portugal. Crossing into Spain on 12 October 1807, Junot started a difficult march through the country, finally entering Portugal on 19 November. The three columns were as follows: General Carrafa's 9,500 men were to assemble at Salamanca and Ciudad Rodrigo and cooperate with Junot's main force. General Francisco Solano's column of 9,500 soldiers, which was to advance from Badajoz to capture Elvas and its fortress, invaded Portugal on 2 December 1807. General Taranco's 6,500 troops occupied Porto on 13 December. The general died the following January, and on 6 June 1808, when news of the rebellion in Spain reached Porto, the new commander of the garrison, General Belestá, arrested the French governor, General Quesnel, and his 30-man dragoon escort and joined the armies fighting the French.

Spring 1808

In the spring of 1808, Spain's army consisted of 131,000 men, of whom 101,000 were regulars and 30,000 militia. Most of the militias formed part of the garrisons of the country's seaports, which needed to be protected against English expeditions.

However, not all of the regular troops were stationed in Spain, since Bonaparte had requested a strong division for use in the north of Europe, and the Marquis of La Romana had been sent to the Baltic with 15,000 men, the picked regiments of the army, leaving only 86,000 regulars in Spain.

Of these regular troops, some 13,000 men were foreign mercenaries: from Switzerland (six regiments, totalling over 10,000 bayonets); a Neapolitan regiment and three Irish regiments —Hibernia, Irlanda, and Ultonia (i.e. Ulster).

Excluding the foreign troops, there were thirty-five regiments of troops of the line, of three battalions each, and twelve single-battalion regiments of light infantry, and if all of these had been up to the proper establishment of 840 men, the total would have amounted to 98,000 bayonets. By way of example, many of the corps in the interior of Spain were grossly under-manned: e.g. the regiment of Estremadura had only 770 men between its three battalions, that of Cordova 793, and the regiment of Navarre 822, that is, only around 250 men to the battalion instead of the proper 840.

As for the militia, these totalled forty-three battalions, which were named after the towns in which they had been raised —Badajoz, Lugo, Alcazar, and so forth. In general, their ranks were much fuller than those of the regular regiments—only two battalions had fewer than 550 bayonets.

May – November 1808

The jubilation following General Castaños' mid-July victory at Bailén was short-lived, and General Merlin's sacking of Bilbao, on 16 August 1808, caused much popular discontent throughout the country, which was aimed specifically at the Juntas and the generals.