Sometimes it has been part of the problem. It has encouraged the establishment of separate school systems for Catholics and Protestants and it has been used a tool by the extremists to give legitimacy to their violence.
Sometimes it has been part of the solution. It has given emotional healing to victims, and it has motivated community leaders on both sides to push for peace.
I'd suggest that the same is true of most conflicts that you think of as stemming from Islam.
In Northern Ireland, religion is correlated to political belief because the two major tribes are divided along those lines. Nobody who believes Northern Ireland should be part of the UK does it because of their interpretation of the Eucharist.
And you could say exactly the same about Islamic terrorists too.