These same scriptures, before the coming of our Lord Jesus Christ, when that Israel which is according to the flesh read them, understood in them nothing other than wars and the shedding of blood; and by this their spirits were whetted to excessive ferocity, and they were forever fed on wars and seditions. But afterward, when the presence of my Lord Jesus Christ poured the calm light of knowledge into human hearts — since indeed, according to the Apostle, He Himself is "our peace" — He teaches us peace from this very reading about wars. For peace is restored to the soul if its enemies, its sin...s and vices, are driven out from it. And therefore, according to the tradition of our Lord Jesus Christ, when we read these things, we too are indeed armed and roused to battle, but against those enemies who "proceed from our heart," namely "evil thoughts, thefts, false testimonies, blasphemies," and the rest of the adversaries of our soul like these; concerning whom we strive, according to what this scripture reports, if it can be done, "to leave no one who may be saved, nor who may draw breath." For if we gain the mastery over these enemies, we shall fittingly gain the mastery also over the "powers of the air," and we shall drive them out of their kingdom, which they had established within us above the seats of the vices. In the earlier readings the king of Jerusalem had gathered with himself four other kings against Jesus and against the sons of Israel; but now no longer does one gather four or five, but see how great a multitude one gathers.…You see how great swarms of contrary powers and of the most wicked demons are stirred up against Jesus and the army of Israel. All these demons, before the coming of our Lord and Savior, possessing human souls at quiet and secure, reigned in their minds and bodies. But when the grace and mercy of our Savior God appeared upon the earth, teaching us to live piously and holily in this world and separated from all contagion of sin, so that each soul might recover its own freedom and the "image of God" in which it was created "from the beginning" — for this cause wars and battles arise from those wicked old possessors of them. And if the first are crushed, many more rise up afterward and come together into one and conspire for evil, they who are ever at odds with the good. And if they are conquered a second time, again a third time other, more worthless powers will rise up. And perhaps, the more the people of God is increased and grows much and is multiplied, the more of them conspire to make war.
Source: HOMILIES ON JOSHUA 14.1