Just days before the Spanish army's victory at the
Battle of Bailén (July 1808), which resulted in the first open-field defeat of a Napoleonic army, and with the
Imperial French Army's II corps d'observation de la Gironde, under General
Dupont, capitulating to General
Castaños, King
Joseph had made his entrance to Madrid through the
Puerta de Alcalá on 20 July 1808. However, when news of Dupont's defeat reached the capital, the King was forced to order the evacuation of the French garrison and administration, which was completed by 1 August, Despite that major setback, following the rout of General
Belvedere's division
at Gamonal (10 November), it was clear that Napoleon would head for Madrid, and on 25 November, the
Marquis of Castelar, Captain-General of New Castile, and General
Tomás de Morla were tasked with defending Madrid, well aware that, as a city, it was indefensible. of a huge army approaching the city, had pushed through the mountain pass at
Somosierra, defeating General
San Juan's army at
the battle there on 30 November. That same evening, Napoleon set up his headquarters at Buitrago.
1 December Latour-Maubourg's and
Lasalle's cavalry reached the northern suburbs of Madrid. That same day, the Junta of Defence was set up, presided over by the
Duke of the Infantado, which included Morla and Castelar, and "a large and heterogeneous mass of colleagues... and prominent citizens forming an unwieldy body very unfit to act as an executive council of war".
2 December Lahoussaye's and Latour-Maubourg's dragoons invested the northern and eastern fronts of the city in the morning. Napoleon arrived at noon, followed later that afternoon by the infantry columns of Marshal
Victor's corps. That afternoon, General
Montbrun handed over a summons to the Junta, which replied that "the people of Madrid were resolved to bury themselves under the ruins of their houses rather than to permit the French troops to enter their city". Napoleon therefore commenced the preparations for an attack to be made the following morning and sent
Lapisse's division of Victor's corps to clear the ground. Under cover of night, thirty guns were located opposite the weak earthworks defending Madrid's Retiro Heights, with smaller artillery in front of several of the northern and eastern gates of the city.
3 December Before dawn, Napoleon sent another summons to surrender, to which
Castelar replied that there should be a suspension of arms for twelve hours, a delay clearly aimed at allowing the Spanish field-armies time to reach Madrid.
4 December Following the capitulation, Napoleon signed the decree abolishing the
Council of Castile.
5 December On 5 December, Napoleon wrote to the French governor of the city, General
Belliard, regarding the capitulation; "The Spaniards have failed to carry it out, and I consider the whole thing void". As well as declaring prisoners of war all those superior officers of the army that were still resident in Madrid, including retired veterans, Napoleon declared ten Other people arrested included
Arias Mon who, since May had been interim president of the
Council of Castile, the
Duke of Sotomayor, and some thirty other leading citizens: some of whom were sent to France, while others were allowed to go free after swearing allegiance to King Joseph. A curfew entered into force that evening, prohibiting people from leaving their houses after 10 pm. ==Aftermath==