on June 6, 1821, leaving him with explicit orders to resist and wait for reinforcements. He successfully stopped all attempts to capture the fort for nearly 4 months, until the arrival of General José Canterac and a powerful division sent by Viceroy de la Serna gave him the orders to surrender the fort due to the lack of supplies and troops. On September 19, the garrison surrendered, in the Baquijano Capitulation, only two days after de la Mar finally submitted his left foot to amputation, having initially refused treatment of a gangrenous toe. The Rebel Cause After the Baquijano Capitulation, de la Mar joined forces with the rebel cause. José de San Martín awarded him with the title of "Division General", a title he accepted reluctantly. De la Mar served as one of three men on the Supreme Governing Board of the Republic of Peru from September 22, 1822 to February 27, 1823. He served as the President of the Congress from November 1823 to December 1823. De la Mar served as the Constitutional President of the Republic of Peru from August 22, 1827 to June 7, 1829. He was removed from the Presidency of Peru after less than two years by a coup d'état led by General Agustín Gamarra and died in forced exile in Costa Rica. References People from Cuenca, Ecuador Presidents of Peru Presidents of the Congress of the Republic of Peru 1778 births 1830 deaths History of Peru People of the Peruvian War of Independence Marshals of Peru Freemasons