In Exodus, God brings judgement on the Egyptians through plagues that were meant to counter the Egyptian gods. These plagues also foreshadow a future coming judgement on the world as shown in Revelation. But thankfully, through Christ, God’s covenant people are rescued from the wrath the come.
All this is from God, who through Christ reconciled us to himself and gave us the ministry of reconciliation; that is, in Christ God was reconciling the world to himself, not counting their trespasses against them, and entrusting to us the message of reconciliation.
Corinthians 5:18-19