Old Testament
The problem of evil plays a large part in the Old Testament. The problem the Old Testament authors faced was that a good God must have had just reason for bringing disaster (meaning notably, but not only, the Babylonian exile) upon his people. The theme is played out, with many variations, in books as different as the histories of Kings and Chronicles, the prophets like Ezekiel and Jeremiah, and in the wisdom books like Job and Ecclesiastes.