sentences:  It was at this time that he established the nearby St Nicholas' Church.de Lacy was relieved of his command of the town in 1210, when King John himself arrived and placed the castle under royal authority.de Lacy eventually regained his title of Earl of Ulster in 1227, however the castle and its walled town were captured several more times following his death (in 1242) and the town largely destroyed by the Scots in 1402.