Siege of Mexico City The Siege of Mexico City was a 1867 military engagement in the French intervention in Mexico between the Mexican Republican forces and Emperor Maximilian ' s troops encompassing in the siege of the city . It was the last armed conflict of the Second Mexican Empire and the fall of the city resulted in the transition of the Empire into the Republic led by Benito Juárez . Circumstances . Mexico City was occupied by the French Army . The French decided to withdrew the last of their corps on 5 February 1867 a week after the Emperor Maximilian also left Mexico City for Querétaro accompanied by his Imperial guards . On the 21st , Republican General Vicente Riva Palacio and Diego Álvarez Benítez arrived near the city with 4 , 000 soldiers . On the Imperialist side , General Leonardo Márquez marched to assume supreme command of the city . On his way to Mexico City Máquez was routed at San Lorenzo by Díaz . Márquez fled with his cavalry leaving the rest of the infantry behind . Colonel Kodolitsch saved the day by marching out and forming a rearguard to protect the retreating troops and bring them into the city . On 12 May all the foreign commanders agreed that they needed to prepare a secondary plan in case General Márquez ' actions endangered their own men . They elected Colonel Khevenhüller as the acting Commander - in - Chief in case of the necessity to remove Márquez . They also agreed that in negotiating any ceasefire agreement they would act together to reach their own ndependentterms regardless of the Mexicans ' . The capital was defended by 400 cannons . On the 2nd Republican forces seized the railroad line of Apisaco and started to transport the war material from Puebla by train . On the 15th General Porfirio Díaz arrived at Villa Guadalupe , where he tried to surround Villa Guadalupe , but was prevented by the Imperial artillery . The French counterguerillas who defended the village withdrew to the fortified garitas at San Lázaro , Vallejo and in the Peralvillo . These positions were already entrenched and defended by five hundred Austrians and two hundred Mexicans . The Austrian column was commanded by von Hammerstein , who was shot in the trenches on 25 May 1867 . The communication and supply lines of the capital were shut down on 18th with the arrival Díaz ' 12 , 000 soldiers . The Republicans were in a hurry to force the city to surrender as the rainy weather of autumn would prevent any further military action to be taken . Upon his arrival Díaz proclaimed that his intents were to arrest General Márquez , Tomás O ' Horán and the former Minister of State . He also stated that he would execute all the Austrian auxiliaries if they were captured . The lives of the Francofon soldiers would be spared since 60 % of his own cavalry consisted of French deserters . On 20 April Agnes Salm - Salm , a Prussian princess in Imperial service , appeared at the camp of Díaz and offered the disbandment of the European troops in exchange for the guarantee of their and Maximilian ' s lives and free passage back to Europe . Although her offer was not accepted she tried to further convince Díaz by sending word that the Austro - Hungarian troops were put on hold and under the temporary protection of the neutral Prussian flag as of 26th inst . Siege . On 17 May Querétaro fell and Maximilian was taken prisoner and the 15 , 000 troops of General Mariano Escobedo were redirected to assist in the siege of the capital . On 23 May , Porfirio Díaz tightened the ring around the city and advanced to Tacubaya and was confronted by the French guerrillas at Belen on 30 May who held them back until 9 June when they were called to reassemble at San Antonio Abad . Meanwhile the famine within the city became unbearable . It was reported that half of the population of 220 , 000 had fled from the city during the siege . There was an instance when 14 , 000 inhabitants left in one day . The famine was so severe it caused a minor rebellion within the local residents . On 8 June , rumors had it that a great quantity of grain was hidden in the Theatre Iturbide . The mob broke its entrances and flooded the building . Some amount of cereals was found which was immediately plundered . The riot escalated and reached the marketplace , threatening to pillage it . In fear that this would have led to greater conflict between the garrison and the civilians and to prevent the gates being opened and city delivered to the Republicans , the Austro - Hungarian cavalry raided the crowd and dispersed it . No weapons were used in order to avoid panic and an anti - Imperialist morale to arise . To prevent further riots , all hidden food stores were revealed by house - to - house searches and distributed by the hussars and gendarmes among the people . On 14 June , General of artillery Ramirez Arellano arrived to the region and after having himself disguised as a charcoal - burner , infiltrated into the city and gave reports about the current situation of the Empire . Márquez took the opportunity to spread rumors of an Imperial victory in Querétaro and used the arrival of Arellano as a forged evidence for that . As soon as the rumors spread that the Emperor was victorious in Querétaro and he was on his way to relieve the capital , a great feast was held in the city . Díaz saw the fiesta as an opportunity to break the stalemate while the city was distracted with their celebration . At noon , he unexpectedly attacked San Cosme and Belen , sneaking with his soldiers one by one through an aqueduct . The native Indians and the French took up the arms against the surprise attack . They charged two cannons with grapeshots and targeted both sides of the aqueduct , while six men mounted it to cut the only possible escape route . The Liberals tried to take initiative three times , all of which were repulsed and they retreated . At the end of the assault attempt several hundred Liberals were found dead in the field . On the 18th the French and Austrian commanders met where the latter informed the guerillas that the Emperor was taken prisoner and that they proclaimed their neutrality for the rest of the battle and were already in negotiations with the Republicans . The French Commander Chenet referred to their previous agreement , in which they agreed that they wouldn ' t surrender without the consent of the other . The next day all Europeans put down their weapons and awaited until the end of the siege . The French were residing at San Pedro y San Pablo , while the other Europeans occupied the National Palace . As the funds were running low General Márquez engrossed $ 150 , 000 from the Barron , Forbes & Co . and impounded $ 60 , 000 more on the Nacional Monte de Piedad . No supplies could reach the city after it had been surrounded and as a result food stores ran empty and the forced levies just worsened the situation . Only three bakeries were still open to furnish the soldiers and the remaining two hundred thousand inhabitants . House raids were everyday common for hidden foodstocks . Still hundreds of people died of the famine . Every sort of commerce was completely suspended . Breakout attempts . First . The first breakout attempt took place on 18 May . The Imperial Mexican infantry was dispersed easily . A dismounted cavalry company intervened and assaulted the Republican ramparts , only to open the road for Colonel Kodolitsch to search for provisions in the nearby territory . After gathering enough rural goods , the Imperialists returned to the city . Second . The second breakout commenced on Sunday at 2 o ' clock in the morning of 9 June after preparing a plan to occupy the Santa Fé fort in order to secure the route into the city . Márquez still believed that the Emperor will arrive to the city with the rest of the army . At 4 am the " red Hussars " of Khevenhüller unified with the French counterguerillas at San Antonio Abad . At 5 am joined by regiment of gendarmes and the brigade of Quiroga they attacked the Republicans . The French were left in reserve . At 6 am General Tabera ordered a feint attack towards the Piedad river . The operation succeeded in piercing the enemy lines though all of his troops had to return to the city . Third . The third and last breakout was led by Márquez himself , which was an undercover attempt to escape the capital and leave it to its fate as he received worrisome information regarding the fall of Querétaro and the capture of Maximilian . On the night of 17 June at the head of 6 , 000 men they marched through the Cuartos bridge in the direction of La Piedad . He was stopped by Díaz in person there who came from Tacubaya when he heard the cannon fire . At that time Colonel Leyva ' s battalion was nearly destroyed and Cuartos bridge had been almost taken when Díaz took command of the first battalion of Oaxaca lancers from General Terán , and reinforced the remnants of the Republicans . He was shortly followed by Terán ' s second and third Lancer battalion , General Naranjo and his Los Morales cavalry and Félix Díaz from Coyoacán . The Imperialists had no other way back but to pass the same bridge they came , which was covered by the fire of Díaz ' artillery causing great losses to Márquez ' forces Negotiations . Díaz and O ' Horán . On the 18th The Mexican Imperial General O ' Horán , persuaded Díaz to meet him halfway at night and used red light signals to identify himself while sneaking out undiscovered from the capital . Díaz escorted by drummers and buglers responded with the same signal , that unfortunately revealed his position to the Imperialist shooters who instantly opened fire on him . O ' Horán blamed Márquez for the incident and swore his innocence . The second night O ' Horan came out of the capital and met Díaz , which they did this time . He offered to surrender the city , including Márquez and the other principal officers , with the sole condition of obtaining a passport to go abroad . Díaz felt that such an offer is pointless considering the city was helpless , and that as for the other leaders I would fulfill my duty . O ' Horán insisted that however the city would fall the capture of the wanted officers was uncertain , but his offer guaranteed both . Díaz refused again and warned the General that although he let him get away that time he would put him under custody as soon as the city was to be captured . Díaz and Khevenhüller . News circulated within the capital that Querétaro had fallen . Upon his capture Maximilian wrote to Anton von Magnus , the Prussian minister to Mexico residing in Mexico City , and called for him to go to his prison and provide legal counseling before his trial . The Austrian commanders was suspicious and thought of that letter as a falsified one and wasn ' t conveyed by the telegraph . Avoiding a possible trick they asked the Prussian Baronto to find out the truth behind the courrier by indirectly requesting the Emperor to send a hand - written signed letter to clarify his will on the continuation of military matters . After local merchants confirmed the arrest of the Emperor , Colonel Kodolitsch declared and insisted that the foreign troops would continue to defend the city no matter what . On the 17th , Baron Eduard Lago , the Austrian chargé d ' affaires , who had been released Querétaro on 2 June and returned to Tacubaya on the 16th , sent a mail on the same day to Colonel Khevenhüller , in which he assured to obtain a signed letter from the Emperor that ordered all officers of Austrian nationality to abstain from any further bloodshed . The Austrians were then convinced of its reliability and decided to cease hostilities immediately and asked Lago for mediation at Díaz . They insisted though to all their military honours , their neutrality , and protection , required to be escorted on the retreat of their troops to Vera Cruz , and assurance of their maintenance until their embarquement at the said port . All terms had been settled in an agreement , which was as follows : Although the agreement had never been ratified it came to an effect on the day of the general surrender , they presented themself disarmed at the National Palace at the time of the Republican takeover . Díaz and Tabera . On 17 June General Ramon Tabera Commanding - General of the Second Army Corps began to make contact with Díaz , though returned without accomplishing anything . He assumed high command when Márquez disappeared from the city on the evening of 19 June with the rest of the treasury . A theory suggested he was smuggled alive by foreign Republican volunteers in a coffin to one of the cemeteries and set to travel at midnight . He was dressed as a fruit peddler to reach safely Vera Cruz . Other account claims he went to one of his confidant , a miller with his compatriot O ' Horán . Otterbourg , the United States Consul General tried to deliver a truce proposition that the city would surrender in exchange for the prohibition of death sentences upon the garrison . Díaz refused to listen to the proposition , and allowed a few minutes for him to return . After he passed the Equestrian statue of Charles IV the shelling resumed . After realising the absence of Márquez white flags were raised on the city buildings , and the call for a capitulation was signaled to the besiegers . The official message was delivered to Díaz by Miguel Peña , Díaz de la Vega and Carlos Palafox on the behalf and consent of Tabera . The agreement was as follows : Díaz and Csizmadia . After the siege General Díaz was informed that Hungarian troops are present in the city . At the moment the Hungarian cavalry found shelter in the National Palace , when Díaz personally sent for Major Csizmadia and granted him a meeting . The two had known each other for quite a long time as Csizmadia served as a prison lieutenant in Puebla when Díaz was held as captive there . On one occasion Díaz refused to be taken to the bathroom by a low rank prison guard when Csizmadia offered to personally escort him there , which was an unusual courtesy . He even invited the General for a lunch at his house , who accepted it . The lieutenant dealt with his inmate amicably and they even attended to a bull fight together . Díaz only refused a closer friendship to evolve because he feared to having been labeled pro - Imperialist and that would have ruined his image . On 20 September 1865 he successfully escaped from the prison using a rope and a dagger with the acquiescence and consent of the Hungarian officer . He praised Csizmadia ' s generous and noble attitude towards him several times in his later memoirs . This was the reason he was looking for the captured Csizmadia after the siege and allowed him and his Hungarian regiment to move to Vera Cruz and to be taken home on the board of the Austrian ship SMS Novara along with the rest of the Austrian corps . Csizmadia also helped to negotiate the same terms of surrender for the Austrians as well . Final days . Feeling that the end is near Leonardo Márquez escaped from the capital , went into exile and passed the leadership to Ramon Tabera On 20 June , who immediately negotiated a surrender , which Díaz accepted and entered the city the following day . After taking measures for the maintaining the order and supplying food to the inhabitants Díaz sent out for the Imperialist officers , as well as ministers , councilors , administrators of the previous regime to present themselves voluntarily within a twenty four hour period . The only ones who did so were General Tabera and a few others . Díaz had three prisons prepared for the high class subordinates of the Empire each reserved to different branches of the same rank . Unprovoked punishment of the prisoners was prohibited . Their families and friends could freely visit them . The sick were permitted to remain at their homes . Many of them failed to show up and search - groups were formed to enforce the warrants . Among these were Vidaurri , Lacunza , O ' Horan , and Manuel Ramirez Arellano but many of them were later arrested . Juan José Baz , newly appointed Chief of the Police of the Capital of the Mexican Republic proclaimed on 21 June : Finally President Juárez ceremonially visited the city on 21 July and issued a general amnesty . Army was reduced to 18 , 000 conscripts .