Juan José Andrade, commander of a cavalry brigade under Antonio López de Santa Anna during the Texas Revolution, was left in charge of Bexar after the battle of the Alamo on March 6, 1836. On April 1, he was ordered to prepare to leave for San Luis Potosí, since Santa Anna thought the Texan forces were routed. Andrade and his command were still in Bexar, however, on May 24, 1836, when Vicente Filisola ordered him to demolish the fortifications of the Alamo and march down the left bank of the San Antonio River to Goliad. Filisola met Andrade at Goliad, and the combined force continued to retreat. When the troops were nearing Matamoros on June 8, José de Urrea, who, unknown to Filisola, had replaced him as commander of the Mexican forces, sent orders for Andrade to return to Goliad. The retreat was continued, however, and on June 12 Filisola was notified that Urrea had replaced him. Since Urrea was not with the force, Filisola resigned his command to Andrade. Although the order for Andrade to return to Goliad was repeated on June 12, Andrade thought that the safety of the troops depended on their reaching Matamoros. He therefore defied his orders and took his command into Matamoros on June 18, 1836, thus ending the campaign.