6. waging war against Amalek.The war against Amalek is from generation to generation. The war against Amalek is against three types of foes: a). Amalek of the heart, that is, the evil inclination and vices; b). the spirit of Amalek, the general one, the Satan who destroys, the adversary of Israel. This is Samael and his hosts. His main power is in the gates of Jerusalem, when its lands are desolate; c). the material Amalek, that comprises Esau and Ismael and the mixed multitude. As explained by the Gaon: we are commanded to inherit it [the land] by force.
The strength and rulership of Amaleks spirit is in the gates of Jerusalem, as mentioned above, but only when there destruction and desolation near the gates and in the unwalled areas of Jerusalem. As long as the spirit of impurity rules there, the feet of the cypress tree cannot stand there. This delays the connection between the Jerusalem of below and the Jerusalem of above, that is the connection between the Shechina and the Knesset Israel on which the entire Redemption depends. The war against the desolation is waged not only by setting up tents of Jacob and dwelling places of Israel in their respective places. It is waged not only by planting its land and fulfilling the commandments dependent on it. The war against the material Amalek always depends on the time and place, and necessitates counterattacking [lit.: returning the battle to the gate] with force, as in the days of Ezra and Nechemia, and like the conquest during the days of Joshua. This is signified by the fact that ! together  equal . In the war against the sanballatim [Sanballat, satrap of Samaria, who opposed Nehemiah and obstructed the rebuilding of Jerusalem] who disrupt building in Jerusalem, and whose strength is that of the mixed multitude, may God save us-in that war, the dweller in Zion will help us, and they will neither hurt nor destroy on all My holy mountain [Isa. 11:9]. Also, no weapon formed against you, will succeed [Isa. 54:17] as it says with abundant mercy I will gather you [Isa. 54:7]. The last verse also contains the name and mission of the Gaon, may his merit help all those who occupy themselves faithfully in such holy work.