There are several deeds and sins of leaders and people;
that extremely displease God,
that invite anger of God,
that invite wrath of God,
that invite the vengeance.
God brought torment to the nations to correct them. It is another way of showing His love and mercy. God provides the opportunity to repent and ask forgiveness so that human beings may be successful in the life after death.