It's caused some wars, as do a lot of things that divide people. Mostly though, religion is used by leaders to manipulate the masses into believing that a war is just and right. Religion is a very powerful tool in getting support from the people to go to war. If we didn't have religion it would be harder to find a powerful enough excuse or ideology that would enable the leaders to readily go to war.