Juan Bautista Vigil y Alarid was born in
Santa Fe, New Mexico in 1792, son of Domingo Vigil and María Francisca Alarid, both from military families. In 1808 he married Rafaela Sánchez in
Tomé, New Mexico. After the independence of Mexico from Spain in 1821, he became secretary of state to the first Mexican governor of New Mexico,
Francisco Javier Chávez. He was to serve in various positions in the New Mexican government until the United States take-over. New Mexico was at first a province of the
Estado interno del Norte, with capital in
Chihuahua. In May 1824 Vigil was New Mexican deputy to the state congress in Chihuahua. As of 6 July 1824, New Mexico was made a separate territory, with
El Paso del Norte (now called Ciudad Juárez) transferred from New Mexico to the State of Chihuahua, a move that Vigil opposed. In 1826 Vigil was appointed customs collector by the central government, in charge of regulating the trade with the United States via the
Santa Fe Trail, a difficult position and one in which he came to blows with the trader
Charles Bent. ==Acting governor==