The Catechism in Questions & Answers

221. How did evil come to mankind?

God gave human beings the opportunity to decide for obedience or disobedience toward Himself. When human beings turned away from God and decided for disobedience toward Him, evil was manifest. Evil is thus not created by God, but likely permitted by Him in that He did not prevent human beings from making their own decision.