He studied in Salta at the school of José León Cabezón, then in Buenos Aires at the Real Colegio de San Carlos.
He qualified as a lawyer in 1804 at the University of Charcas (now Bolivia) and was named Relator of the Audiencia Real there, and later President of the Forensic Academy.
The uprising was suppressed by Mariscal Nieto and the leaders captured and sent to Callao, but Sánchez de Bustamante managed to flee to Jujuy.
Moreno named him as attorney of the Audiencia, a position which he held until 1811, before returning to his hometown as general assistant of the city's Cabildo and courts.
Belgrano's successor, General José de San Martín, promoted him to be his secretary, and Rondeau made him secretary-general in 1814.