 That year, he was also named governor and military commander of Puebla.He was later taken prisoner by the French, who sent him into exile on 17 January 1866.He managed to return to the country on 31 July 1866.