The major Panji story of Bali, telling of the wandering prince of Koripan, Panji, who is looking for the lost princess of Daha (Kediri), Rangkesari. Rangkesari's brother travels overseas and becomes Prabu Melayu. On return to Java, he and Panji meet in the court of the king of Gegelang, their uncle. They and their allies do battle against a coalition of kings led by Mataram, including his brother Lasem, who has married Rangkesari, although she refuses to let him consummate the marriage. After their victory over the enemy forces, Panji and Prabu Melayu, still in disguise, have a series of adventures in which Panji is eventually united with Rangkesari.