In 1808
Joseph Bonaparte acceded to the throne of Spain, effectively making Spain a client state to
Napoleonic France. Spain's resistance to France precipitated the
Peninsular War 18081814. In 1809 General Álvarez, commander of
Montjuïc Castle in
Barcelona, was ordered by his superiors to surrender the castle to the French, although he had been preparing to resist. Álvarez left Barcelona and joined the Spanish rebels against French rule. The Spanish Government in
Cádiz named Álvarez commander of the Army of
Catalonia and Governor of Girona. The city of Girona was on the main road between France and Spain, hence it was strategically important. The French had twice besieged the town the year before, first in the
Battle of Girona 20–21 June, and then in the three-week
Second siege of Girona from 24 July to 16 August, both times having to retreat. The French had captured the nearby coastal city of
Roses and its citadel in the
Siege of Roses in late 1808. Taking command of the city on 1 February 1809, Álvarez immediately started preparing its defense, requesting provisions for 7,000 men. The city of Girona at that time had a population of between 13,000 and 14,000, and it was defended by a garrison of about 5,700. The defenders of Girona included the "Irish"
Ultonia Regiment. The women of the town organized into a Company of Santa Barbara to care for the sick and wounded, transport ammunition, and other tasks. On 1 April, Álvarez proclaimed his famous edict, to the effect that if the city were attacked, he would immediately execute anybody that mentioned surrender or capitulation. On 3 May, arms were distributed to 1,717 volunteers. The fortifications of Girona were antiquated since nothing had been done to modernize them since the
War of the Spanish Succession a hundred years earlier. The medieval walls were thin, so they often could not support artillery. The area of the Mercadal, to the west of the River Onyar, was particularly weakly fortified. The French did not attack there, however, fearing the dangers of artillery fire from the heights of Girona and the difficulty of street fighting after their recent experience in the
second siege of Zaragoza earlier in the year. Moreover, the siege works for an attack on the Mercadal would have had to be dug on the flood plains of the River Ter, and flooding was not uncommon. The wall fortifications were augmented by surrounding bastions such as La Merced and Santa Maria by the Onyar to the south and north of Girona, respectively, and the several forts and redoubts (Capuchins, Chapter, Calvary, etc.) along the crest of the mountain behind Girona. Although
Montjuïc Castle, just to the north of Girona, was well-supplied with cannon, there were less than 300 men who were experienced with artillery. Nevertheless, Álvarez made the most of the defenses. ==Siege==