Parākramabāhu spent much of his youth in the courts of his uncles Kitti Sri Megha, Prince of Dakkinadesa, and Sri Vallabha, Prince of Ruhuna respectively, as well as in the court of the King of Rajarata, Gajabahu II. He succeeded his uncle Kitti as king of Dakkhinadesa around 1140 and over the next decade improved both Dakkhinadesa's infrastructure and military. Following a protracted civil war, he secured power over the entire island around 1153 and remained in this position until his death in 1186. During Parākramabāhu's reign, he launched a punitive campaign against the kings of Burma, aided the Pandyan dynasty against the Chola dynasty in southern India and maintained extensive trade relations with China and countries in the Middle East. Within the island, he consecrated religious monuments, built hospitals, social welfare units, canals and large reservoirs, such as the Sea of Parakrama.