 He joined the cause of Brigadier Simon Bolivar, becoming Bolivar's aide as Bolivar was preparing to fight the Spanish for the liberation of Venezuela.Bolivar appointed Mendoza the governor of Mérida, a city that had joined Bolivar's cause that May, with Mendoza entering the city on 23 May 1813.Mendoza also became governor of the province of Mérida.