 Bolivar returned to Caracas at the end of 1826, and peace was restored in the city by January 1827.After Bolivar again secured power in Caracas and conflict between the factions abated, Bolivar invited Mendoza to return to Venezuela.Bolivar appointed Mendoza Mayor of the Department of Venezuela, a role Medoza kept until resigning in the middle of 1828.