The ten plagues were sent down upon Egypt by the LORD God, because the Pharaoh refused to let Israel go. Each plague seems to have been directed against a specific Egyptian god in order to prove that Yahweh or Jehovah, was and is the true God of gods.
1. Bloody water (Exodus 7:17) – against the false god Nilus, the sacred river god.
2. Frogs (8:6) – against Hekt, the false goddess of reproduction
3. Lice (gnats) (8:17) – against Seb, the false god of the earth
4. Flies (beetles) (8:24) – against Khephera, the sacred scarab
5. Murrain (plague) on Egyptian cattle (9:3) – against Apis and Hathor, the sacred bull and cow
6. Boils on man and beast (9:10) – against Typhon, the evil-eye false god
7. Hail (9:23) – against Shu, the false god of the atmosphere
8. Locusts (10:14) – against Serapis, the false protector from locusts
9. Darkness (10:22) – against Ra, the sun false god
10. Death of the first-born of man and beast (11:5) – against Ptah, the false god of life. Perhaps this was a blanket attack against all the false gods of Egypt.
We should love God and serve Him with all of our heart, soul, mind and strength. (Deuteronomy 6:4-5; Mark 10:29-30) This means avoiding anything that would displease Him. Obviously an idol would take His place in our hearts and lives but usually Satan presents them subtly, and then they take over our lives. It's not a siege process, instead it's a like a secret infiltration that overtakes the host.
"Wherefore, my dearly beloved, flee from idolatry. I speak as to wise men; judge ye what I say. The cup of blessing which we bless, is it not the communion of the blood of Christ? The bread which we break, is it not the communion of the body of Christ? For we being many are one bread, and one body: for we are all partakers of that one bread. Behold Israel after the flesh: are not they which eat of the sacrifices partakers of the altar? What say I then? that the idol is any thing, or that which is offered in sacrifice to idols is any thing? But I say, that the things which the Gentiles sacrifice, they sacrifice to devils, and not to God: and I would not that ye should have fellowship with devils. Ye cannot drink the cup of the Lord, and the cup of devils: ye cannot be partakers of the Lord's table, and of the table of devils. Do we provoke the Lord to jealousy? are we stronger than he? " (1 Corinthians 10:14-22) "No man can serve two masters: for either he will hate the one, and love the other; or else he will hold to the one, and despise the other. Ye cannot serve God and mammon." (Matthew 6:24) "For they themselves shew of us what manner of entering in we had unto you, and how ye turned to God from idols to serve the living and true God." (1 Thessalonians 1:9) "Little children, keep yourselves from idols. Amen." (1 John 5:21)