Remember that in the middle, and late middle ages, the Islamic world was the advanced, progressive, cultured and tolerant civilization, far ahead of western Europe. Christian Europe was a place of endless war and bickering and of religious zealots.
From 700 to 1400, roughly. Then they fell into obscurantism. We should be good for another 100 years before we fall too.