Question: which country had a large muslim population for almost 800 years
Answer: Islam was a widespread religion in what is now Spain and Portugal for nine centuries , beginning with the Umayyad conquest of Hispania and ending ( at least overtly ) with its prohibition by the modern Spanish state in the mid-16th century and the expulsion of the Moriscos in the early 17th century .