Bustamante stepped down from the presidency and assumed command of the armed forces himself and marched to San Luis Potosí. The presidency in the meantime was held by Santa Anna. The rebels under Urrea and Mejia now made an incursion into Puebla, and Santa Anna headed out from the capital to meet them. Government forces under General Valencia defeated the rebels at the Battle of Acajete on May 3, 1839, and captured General Mejia who was summarily executed. Urrea however escaped and retreated into Tampico which fell to government forces on June 11 with Urrea being exiled.
