during the liberal triennial he was the mayor of cadiz and congressman in cortes