The context seems to be at the end of the 7-year Tribulation Period to come after the Rapture of the church
In Ezekiel 38, there is a call to all nations to gather to help solve some sort of crisis in the Middle East. Upon arriving, verse 10 says that an evil thought comes into the mind of those gathered that they should unite and attack Israel and spoil her unwalled villages while unsuspecting. Apparently Israel is not aware and they do attack, robbing, killing, pillaging. God actually says that He called them there and knew they would do it, but He called them so that He can destroy them together ( se vs. 16 , 39:1) . There are no surprises with God . Even the heinous crimes in North Korea and Sudan are not beyond His gaze. He longs that mankind should cry out to Him and see His salvation , giving Him the glory and praise. Are you in touch with God today? You cannot approach Him outside of forgiveness and faith in Jesus Christ’s redemption. Acts 4:12