St. Mary's was amongst the largest and most prestigious parish churches in medieval Ireland. It was built, probably in the late twelfth century, as a chapel for the then newly constructed Kilkenny castle.