Why Did Allah Create Evil?

This is a strong reminder of how we are tested by evil that Allah has created. Allah has created evil to test us. He warns us in the Quran that we will be tested because those before us were tested. Shaytan comes to us to try and distract us. He has tried to distract the Prophets in their quest, so no one is free from Shaytan. It is all a test.