Kurunegala had a citadel in the 13th century. Its ascendancy as an ancient capital of Sri Lanka began with a series of events that took place during the late 12th century at Yapahuwa.