You hit the nail right on the head.
Remember that Spain, as a country, was being born at the same time.
Indeed, evicting their oppresors was what accelerated the union of the major Spanish kingdoms.
And having been under Muslim rule for 700 years must have had some influence on how they solved the problem of their oppresors.