The story begins as a genie, named Zahra, is leading the Prince through a forest to what she says will be the kingdom and princess he's been asking for. When they reach the clearing, with no kingdom in sight, the Prince kisses an enchanted statue at Zahra's prompting. This forms a magical union between Zahra and the Prince, protecting both from death, and allowing the Prince to see as Zahra sees. A gateway suddenly appears where once there was only a pass, and as the Prince travels through it, he sees a kingdom, Izdihar, covered in vines and decay. Zahra tells him that Izdihar is his as she continues to lead him. He soon realizes the kingdom is not in good condition and, inspecting some features, pulls a blade from a stone. A witch flies upwards, freed unintentionally by the Prince, followed by the arrival of the Beast; a large creature. The Prince uses the blade to stab the Beast, but the blade breaks from the hilt, stuck impaled into the Beast, who then flees. Zahra explains that the blade was used to imprison a great evil, the Haoma, which ravaged Izdihar and its people, and by taking the blade, the Prince released it. She tells him he must reunite the blade and the hilt, and use the reforged sword to defeat the plant-like Haoma.
The Prince then sets out chasing the Beast, and, after much chasing and confrontation, is in the palace. While further chasing the Beast, Zahra explains to the Prince that she and all the genies once used to live here, but were killed by the Haoma. The genies vowed to vanquish the Haoma, and as Zahra is the last one left, it falls on her to make sure her people don't die dishonorably. Because of this, she allowed herself to be sold to the Prince at a marketplace, because he sought a kingdom, a princess, and immortality to prove himself to his father, allowing himself to be easily led here. She therefore believes that the Prince possesses the prowess and ambition to vanquish the Haoma, fulfilling her people's promise.
In a final confrontation, the Beast tells the Prince to save his daughter, the princess, and vanquish the Haoma from Izdihar. With renewed vigor, and both pieces of the blade in his possession, the Prince sets out to vanquish the Haoma. He starts by reforging the blade, but does not do this by normal means. Instead, he undergoes four trials to prove himself to the gods, who then reforge and enchant the blade for him. With the sword once again restored, the Prince pursues the Witch, who seems to be the leader of the Haoma. He finds her, and confronts her, eventually defeating the Haoma. Because of this, the Witch is released from the Haoma's spell, and is actually the princess of Izdihar in a human-like form. The Princess is grabbed by the Haoma and to save her, the Prince gives her a kiss to transfer his power over death to her. Then the princess seemingly falls off of a ledge, and Izdihar begins to crumble; the Haoma withering and dying after years of supporting the structure. The Prince quickly flees the collapsing Izdihar, the genie Zahra still at his side, and is forced to form a more advanced union with Zahra in order to withstand the sinking sand he is slowly slipping into.
This union puts him in a mental realm while Zahra fights for their survival, and as the Prince finally escapes Izdihar. Zarha tells him consistently to remember everything he has seen. The story ends as the Prince sadly wanders out into the desert, having lost both Zahra and the princess but having gained the memories of Izdihar, which has been preserved in his mind and in his heart. The narrator continues, explaining that she believes he will one day return to the kingdom to find her, revealing that the princess was Zahra all along, and that she's still alive somewhere.