This incredible post from a year ago, which unfortunately I only found out about recently, is a thorough refutation of the idea that religion is the main cause of war in history. It was made by the historian Andrew Holt, and is reproduced in the book Seven Myths of Military History (ed. John D. Hosler).