Within the overall narrative of the parashas, Balaam’s attempt to curse Israel in which he failed, is followed by an alternative plan to cause malevolence amongst the fledging nation of Israel. A curse would typically bring upon a people some sort of malaise, at the behest of spiritual powers having the ability to wreak havoc. Yet, being compelled by H’Shem to bless Israel, instead of cursing the Children Israel, Balaam was thwarted. Out of his frustration, he encouraged Balaak to send Midianite women to entice the Jewish men into idolatry and licentious behavior (Numbers 25:1-3).
Having undermined the kedushah (holiness) of Israel, through his devious advice to Balak, Balaam caused Israel to sin, therefore leaving them open to judgment from H’Shem (Nesivos Shalom). A “shield of protection” is guaranteed to the nation, when a strong connection to H’Shem is maintained through emunah (faith) and moral integrity. Both of these essentials were diminished when the people bowed down to the gods of the Moabites, and the men fell prey to licentiousness with “the daughters of Moab” (Numbers 25:1-2, JPS). As a result, H’Shem, who is both just and merciful, acted upon His Attribute of Justice, by causing a plague, when “the anger of the L-RD was kindled against Israel” ((Numbers 25:3, JPS).