Muslim interest in the peninsula returned in force around the year 1000 when Al-Mansur (also known as Almanzor) sacked Barcelona in 985.
By the mid-13th century Emirate of Granada was the only independent Muslim realm in Spain, which would last until 1492.