Patrick preached at the royal dun and converted king Aengus. The Tripartite Life of the saint relates that while "he was baptising Aengus the spike of the crozier went through the foot of the King" who bore with the painful wound in the belief "that it was a rite of the Faith". According to the same authority, twenty-seven kings of the race of Aengus and his brother Aillil ruled in Cashel until 897, when Cerm-gecan was slain in battle. There is no evidence that St Patrick founded a church at Cashel, or appointed a Bishop of Cashel. St Ailbe, it is supposed, had already fixed his see at Emly, not far off, and within the king's dominions. Cashel continued to be the chief residence of the Kings of Munster until 1100, hence its title, "City of the Kings". Before that date, there was no mention in the native annals of any Bishop, or Archbishop of Cashel. Cormac MacCullinan is referred to, but not correctly, as Archbishop of Cashel, by later writers. He was a bishop, but not of Cashel, where he was king. The most famous man in Ireland of his time, but more of a scholar and warrior than an ecclesiastic, Cormac has left us a glossary of Irish names, which displays his knowledge of Latin, Greek, and Hebrew, and the "Psalter of Cashel", a work treating of the history and antiquities of Ireland. He was slain in 903, in a great battle near Carlow. Brian Boru (Old Irish: Brian Bóruma) fortified Cashel in 990. Murtagh O'Brien, King of Cashel, in presence of the chiefs and clergy, made a grant in 1101 of the "Rock" with the territory around it to O'Dunan, "noble bishop and chief senior of Munster", and dedicated it to God and St. Patrick. Then Cashel became an archiepiscopal see, and O'Dunan its first prelate as far as the primate, St. Celsus, could appoint him. At the synod of Kells, 1152, Cardinal Paparo gave a pallium to Donat O'Lonergan of Cashel, and since then his successors have ruled the ecclesiastical province of Munster. In 1127 Cormac III of Munster, King of Desmond, erected close to his palace on the "Rock" a church, now known as Cormac's Chapel, which was consecrated in 1134, when a synod was held within its walls. During the episcopate of Donal O'Hullican (1158–1182), the King of Limerick, Domnall O'Brien, built in 1169