It was established by King Buwanekabahu I after he shifted the capital from Polonnaruwa to Yapahuwa, located in the present-day North Western Province of Sri Lanka.
Yapahuwa served as the capital of the kingdom and was known for its fortified rock fortress, which was constructed on a massive granite rock rising abruptly from the surrounding plains. The fortress at Yapahuwa was renowned for its architectural grandeur and served as a strategic stronghold against invasions.
The kingdom faced numerous challenges during its brief existence, including external invasions and internal power struggles. Despite its relatively short duration, the Yapahuwa Kingdom made significant contributions to Sri Lankan history and culture, particularly in the fields of art and architecture.
The kingdom came to an end in 1284 when it was overthrown by an invasion from the south by forces loyal to Parakramabahu III, leading to the establishment of the Kurunegala Kingdom. Today, the Yapahuwa rock fortress stands as a UNESCO World Heritage Site and remains a testament to the kingdom's once great power and influence.