<P> Alagakkonara is mentioned by Ibn Batuta as ruling in Kurunegala, but other sources indicate that he was the Bandara (Guardian) of Raigama Korale (county) in the modern Kalutara District . Arya Chakravarthy's army was held by Alagakkonara in front of Kotte, while he defeated the enemy's invasion fleet at Panadura to the south - west . </P> <P> Kotte was a jala durgha (water fortress), in the shape of a triangle, with the Diyawanna Oya and Kolonnawa Oya marshes forming two long sides; along the shorter third (land) side a large moat (the' inner moat') was dug . The fortress was nearly 2.5 km (0.97 sq mi) in area, fortified with ramparts of kabook or laterite rock, 2.5 metres (8 ft 2 in) high and 10.7 metres (35 ft) in breadth . </P> <P> In 1391, following the conquest of the Jaffna Kingdom by Prince Sapumal (Sembahap Perumal), Kotte was given the epithet' Sri Jayawardhanapura' (' resplendent city of growing victory'). It became the capital of the ancient Kingdom of Kotte, which it remained until the end of the 16th century . </P> <P> From the ramparts to the magnificent three storied buildings that housed the Kings Palace, Laterite and clay were the main raw material used in its construction . One of the places from which the laterite blocks were mined can be seen even today inside the premises of Ananda Sasthralaya (a local school). </P>

When did sri jayawardenepura kotte become the capital