saw this option as a threat to the transfer and loss of national sovereignty, so he withdrew and the project was conducted in the government Jose Maria Medina. War against Guatemala At 1853, Cabañas appointed Jose Francisco Barrundia, Minister Plenipotentiary in Washington. During this year, General Rafael Carrera, President of Guatemala constantly harassed General Cabañas. Thus, Cabañas deposited the presidency to General Francisco Gómez during the period from 9 May to 31 December 1853, to personally lead the military campaign against Guatemala, and installed his headquarters in Gracias . He returned to the presidency on 1 January 1854 and faced difficult political conditions. On July to this year, he sent a military column to Nicaragua under the leadership of General Francisco Gomez, who died attacked by cholera on 25 July 1854, without achieving the objectives of imposing the supporters of the old Federation. Due to attempts of Cabañas to restore the Central American Federation and his conflicts with the conservative Nicaraguan government of Rafael Carrera, Carrera declared that his aim in Honduras was to overthrow General José Trinidad Cabañas, which achieved backing of the Honduran conservatives, who, led by General Juan Lopez, invaded the nation and defeated to Cabañas on the Battle of Masaguara, in the plains of Santa Rosa and Gracias on 6 October 1855, forcing him to resign the presidency and take refuge in El Salvador. General Juan López called the vice-president José Santiago Bueso to hold the presidency of the Executive, on 18 October of same year. In El Salvador, Cabañas became both a Minister in the government and head of the National Congress. Cabañas traveled to Nicaragua to seek support to regain the Honduran presidency to the Nicaraguan president Patricio Rivas, who didn't give him for alleged influences of adventurer William Walker. So he returned to El Salvador, where he lived for many years and served as minister and civil and military governor of San Miguel in the government of his friend Gerardo Barrios (1858–1863). Last years During the last years of his life, General Cabañas retired from politic and could return to Honduras at 1867 and settled in Comayagua. In Honduras, he began a campaign against the presence of William Walker in Central America, then was appointed by the administration of President José María Medina as quartermaster of the Customs of Trujillo, Honduras. Cabañas died on 8 January 1871, at age 65. After his death,