he remained the that city throughout the successive independence and royalist administrations