 When Morazán reconquered Honduras, Vigil was freed.After Morazán's victory in the Battle of Trinidad (10 November 1827), the Legislative Assembly of Honduras named Vigil vice-chief of state on 27 November 1827.Morazán later made him chief of state of Honduras (7 March 1829 to 2 December 1829).