Yes it is the collective human ego, it is quite literally insane. The ego of the individual feels like it belongs to something, which is why it attaches itself to religion and patriotism, it is just one more thing to give it a sense of self, whether you are Christian American or Muslim Arabic those are just to more things to identify with, as far as you perceive it it becomes a part of who you are and now the absolute insane ego is ready to kill or die for this false perspective of self, this fleeting idea of self which the mind tries to perpetuate as best as it can. Religion is not the problem, it is in your hearts humanity, and if it is in your heart it will conquer the mind and thus control your will, until you lay your mortals souls to rest there will always be suffering and conflict.