The characteristic black-white gyronny is taken from the flag of Lisbon, but with the coat of arms of Ceuta in the middle (looking almost identical to that of Portugal). The addition of this coat of arms almost makes this Spanish city flag more Portuguese than the flags of Portuguese cities.

The flag of Lisbon looks like this:

Gyronnies are a typical feature of Portuguese vexillology, with many city flags featuring it. You can scroll through this list of Portuguese municipal flags to see plenty of examples: https://en.wikipedia.org/wiki/List_of_Portuguese_municipal_flags

Wikipedia article about the flag