Named as the province's vice-president and military commander, Caxias arrived in São Paulo on 21 May 1842. After he defeated the rebels there, he was appointed military commander of Minas Gerais and marched to that province. With the aid of National Guard units from Rio de Janeiro under its president, Honório Hermeto, Caxias was once again successful, and by late August, the rebellion was crushed. Caxias was honored by Pedro II, who made him his aide-de-camp on 23 July 1842. Two days later, Caxias was promoted to brevet (acting) field marshal (present-day divisional general).