On April 7, 1795, he assumed political and military
governorship of Nuevo León. He successfully lead his command against large raiding parties of
Apaches and
Comanches in 1797. In addition, he provided protection for the Texas frontier.
Move to Texas Commissioned as commandant of the Louisiana frontier, he traveled to
San Antonio on May 31, 1806. He was ordered by
Commandant General of the Internal Provinces,
Nemesio Salcedo y Salcedo, to patrol the area between the
Sabine and the
Arroyo Hondo. He occupied
Bayou Pierre in resistance to foreseen American aggression by General
James Wilkinson. In November 1806, Herrera and Wilkinson settled on the
Neutral Ground agreement (which was honored until the
Adams–Onís Treaty of 1819). After 1806 Herrera devoted his time in improving the defenses of Texas. Herrera and Governor
Manuel María de Salcedo were removed for detention to
Ignacio Elizondo's hacienda in
Coahuila. These two
royalist prisoners persuaded Elizondo to change allegiance. Their new convert Elizondo soon captured Hidalgo and his followers on their pilgrimage to establish
San Antonio as the center of the revolt in
New Spain. In July 1811, Herrera returned to San Antonio as
ad interim governor. He filled this position for six months, until Salcedo resumed the office in December. But after failing to get the rebels to surrender, they fell back to San Antonio in February. == Capture and execution ==