The gyronny is identical to that of the flag of Lisbon, to commemorate the conquest of the city by the Portuguese in 1415. The city was a part of the Portuguese Empire until 1640, after which it decided to remain with Spain. Thus the coat of arms of the city is nearly identical to that of the Kingdom of Portugal, showing the seven castles over the red bordure and the five escutcheons with silver roundels.