After the Peace of Utrecht (1713) he participated in the Parliament in which Catalonia proclaimed the continuation of the war in defense of their constitutions the on 6 July 1713. While Barcelona was besieged by Bourbon troops, he was proclaimed "Conseller en Cap" (mayor) of Barcelona on 30 November 1713, and by virtue of their functions he was also colonel of the regiment of the milícia citizen, governor of Barcelona and the fortress of Montjuïc, as well as member of the Veinticuatrena Board of Government.