The de facto solution offered by the medieval synthesis broke down with the arrival of modernity imposed by the Europeans, conventionally dated to Napoleon's attack on Egypt in 1798. This challenge pulled most Muslims in opposite directions over the next two centuries, to Westernization or to Islamization. मध्यकालीन संश्लेषण ने जो अघोषित समाधान प्रस्तुत किया था वह यूरोप द्वारा थोपी गयी आधुनिकता के आने के साथ ही समाप्त हो गया जिसे कि परम्परागत रूप से 1798 में मिस्र पर नेपोलियन के आक्रमण के समय से माना जाता है। इस चुनौती ने मुसलमानों को अगली दो शताब्दियों तक दो परस्पर विरोधी दिशाओं में धकेल दिया या तो पश्चिमीकरण या फिर इस्लामीकरण।