Basically it was part of a larger religious war between Catholics and Protestants in Europe where lots of atrocities were committed. As the protestants were a minority in Ireland they formed the orange order to try and maintain their hegemony after the victory, afraid if Catholics took power again in Ireland they would be at best discriminated against at worse ethnically cleansed.