The narrative of invasion prepared the ideology for Christian reconquest.
Evidence
The invasion prepares the scene (dramatically and ideologically) for the resurrection of Christian Spain under the Gothic kings of León and Castile. The invasions of the diabolical Africans will be righted by the reconquest by Christian kings; the perversion of churches into mosques by the restoration of mosques into churches. — John V. Tolan, Saracens, 973