Commentators explain that God's judgment against wicked rulers is an expression of His mercy. Albert Barnes notes that removing corrupt kings is a kindness to humanity and the church, stopping evil and allowing their resources to be used for righteousness. John Gill adds that for Israel, this was a specific act of mercy that protected them and secured their promised land. Thus, God's vengeance and mercy are seen as compatible actions.