He was secretary of the junta that in November 1811 functioned as the first independent government of the province. He was mayor of San Salvador in 1814, elected by popular vote.
In November 1811, he was part of the junta that formed the province's first independent government. By 1814, he had become the mayor of San Salvador through a popular election.