This is question submerged in Theology and can be very complicated to answer coherently. That's why I'm trilled to have read Harrison's post on evil. It looked at evil from the perspectives of St. Iranaeus and St. Augustine. It is well worth your time.
Read the post.
Just remember that God can work good our of an evil. For it was through the Crucifixion of God that the world was redeemed and made whole again.
Disclosure of Material Connection: Some of the links on this blog are “affiliate links.” This means if you click on the link and purchase the item, I will receive an affiliate commission. Regardless, I only recommend products or services I use personally and believe will add value to my readers. I am disclosing this in accordance with the Federal Trade Commission’s 16 CFR, Part 255: “Guides Concerning the Use of Endorsements and Testimonials in Advertising.”