Ireland had two major opposing alliances: the king of Ulster and the king of Leinster on one side, and the king of Connacht and the king of Breifne on the other.