Theodicy involves a vindication of God's justice against the charge that the presence of evil in creation shows Him to be unjust, impotent, both, or nonexistent. Theodicy declares that God is all-powerful and all-good even though this might not seem to be the case since evil exists in the creation.
John MacArthur