In 1861 the government of Benito Juárez suspended payment on the foreign debt and Britain, Spain and France came armed to collect; Britain and Spain, seeing France's territorial designs, withdrew in turn, leaving Napoleon III alone intent on Mexico as the proving ground of empire. In 1862 the French army attacked Puebla and was beaten on 5 May by Zaragoza — the origin of 'Cinco de Mayo'; in 1863 the French came again and entered Mexico City, and in 1864 they crowned the Austrian archduke Maximilian and his consort as emperor and empress of a 'Second Mexican Empire' — a prince of liberal ideals, made captive in practice to the conservatives and the church. The republican government fought on from the north in guerrilla, Juárez holding the constitutional line; when the American Civil War ended in 1865, Washington pressed under the Monroe Doctrine and closed the French supply, and Napoleon III, squeezed within and without, pulled his army out in 1866-1867. Maximilian refused to flee; beaten and taken at Querétaro in May 1867, he was shot by the republican firing squad on 19 June — the last European attempt to plant a monarchy in the Americas closed there. The Mexican Republic, the child of the Mexican War of Independence, was restored, and Juárez's secular reforms became irreversible.