In the OTL, the Ottomans reached the gates of Vienna, and at the end of the Napoleonic Wars still held a large part of European territory. On the other side of Europe, the Spanish and Portuguese had reclaimed the Iberian peninsula.
How difficult would it have been for Morocco to have an empire that included much of al-Andalusia and extended to a loose association of Northern African states? And have it endure at least until 1815, even if it starts contracting like the Ottoman Empire did? Does this butterfly all European history, or can guesses be made?
For the purpose of this challenge, it's not necessary to cut off the Ottomans at the same time (indeed, by the time of the Ottoman rise, Muslim Spain was already about done). In fact, it might be interesting to compare Europe with both Morocco and Turkey, to Europe with only Morocco.