In 1815, Maza was elected to the Cabildo of Mendoza and actively assisted José de San Martín. He was elected by Mendoza to the Tucumán Congress and served in 1816 for the declaration.
After the Congress moved to Buenos Aires, he served as president of the body in November 1817. He resigned his mandate in 1818 and returned to his hometown to teach.
In 1830, Videla Castillo was sent by General Paz to take charge of the government. Maza, a leading Federalist, left for the campaign, and was killed by natives at Chacay.