[Exo 34:11-17 NLT] (11) But listen carefully to everything I command you today. Then I will go ahead of you and drive out the Amorites, Canaanites, Hittites, Perizzites, Hivites, and Jebusites. (12) "Be very careful never to make a treaty with the people who live in the land where you are going. If you do, you will follow their evil ways and be trapped. (13) Instead, you must break down their pagan altars, smash their sacred pillars, and cut down their Asherah poles. (14) You must worship no other gods, for the LORD, whose very name is Jealous, is a God who is jealous about his relationship with you. (15) "You must not make a treaty of any kind with the people living in the land. They lust after their gods, offering sacrifices to them. They will invite you to join them in their sacrificial meals, and you will go with them. (16) Then you will accept their daughters, who sacrifice to other gods, as wives for your sons. And they will seduce your sons to commit adultery against me by worshiping other gods. (17) You must not make any gods of molten metal for yourselves.
To clarify, would a host community/country to Baal expect to find allies in communities/countries that also host Baal? The text seems to link the worship of foreign gods with making treaties with them. And Israel's obligation to the nations whose gods they have adopted might include military aid, dunno.
Am I alone with seeing caveats about treaties connected with the worship of the gods of other nations.
The LORD wants iconoclasts!