 The peaceful and prosperous time under Parakramabahu was disturbed by the invasion of Chandrabhanu of Java.However, the king was able to expel the enemy and bring back the country to a stable status again.Chadrabhanu of Java invaded the country for the second time and after defeating the local sub-ruler at Yapahuva, demanded the Tooth Relic from Vijayabahu of Dambadeniya.