 He was also chief of state of the federal states of Honduras (1829) and El Salvador (1836–37 and 1837–38).Diego Vigil was the son of José Vigil Fernández and Josefa Cocaña Fábrega.He was related to the Central American Liberal leader, general and president, Francisco Morazán, and was among his closest fellow combatants.