CCC 2317 Injustice, excessive economic or social inequalities, envy, distrust, and pride raging among men and nations constantly threaten peace and cause wars. Everything done to overcome these disorders contributes to building up peace and avoiding war:
Insofar as men are sinners, the threat of war hangs over them and will so continue until Christ comes again; but insofar as they can vanquish sin by coming together in charity, violence itself will be vanquished and these words will be fulfilled: “they shall beat their swords into plowshares, and their spears into pruning hooks; nation shall not lift up sword against nation, neither shall they learn war any more.”1

1 GS 78 # 6; cf. Isa 2:4.