Final answer:
The Muslim armies that invaded Spain were stopped by Charles Martel at the Battle of Tours in 732. This defeat halted the further advance of Muslims into Europe, leading to the eventual Reconquista and expulsion of Muslim rule from the Iberian Peninsula by 1492.
Step-by-step explanation:
The Muslim armies that invaded Spain and crossed the Pyrenees Mountains were defeated by Charles Martel's Frankish army at the Battle of Tours, also known as the Battle of Poitiers, in 732 CE. Despite their initial success in the Iberian Peninsula, the Muslims were unable to advance further into Europe after this significant defeat. The region of Spain, known as al-Andalus, continued to stay under Muslim control until the Reconquista by the Christian kingdoms, which culminated in the surrender of Granada to Ferdinand and Isabella in 1492, marking the end of Muslim rule in the Iberian Peninsula.