Setting
The series is largely based on numerous stories from One Thousand and One Nights (Arabian Nights), most notably the tales of Aladdin, Ali Baba, and Sinbad the Sailor.[3] The story is set in an alternate recreation of the ancient Old World with several regions and nations having some resemblances with real-life counterparts from that time. In this world, all living beings possess an essence known as Rukh (ルフ) and when they die, this essence returns to the huge flow (also known as "guidance") of Rukh that gives life to all subsequent beings in an eternal cycle of rebirth called "Fate". Once a person is overcome with sadness, anger, and hopelessness, their Rukh becomes corrupted, unstable, and black, and deviates from the main guidance in a process known as "Fall into Depravity" (堕転).
There are also several magic castles full of treasures and traps known as "Dungeons", which are each the lair of a powerful magic being, a Djinn (ジン). Individuals that manage to overcome the trials of a Dungeon and earn the allegiance of its Djinn are known as Dungeon Capturers (攻略者), gaining the ability to use its powers infused in a personal item of theirs known as a "Metal Vessel" and create less potent "Household Vessels" for their companions as well.
People can use the Rukh in their bodies to create an energy known as Magoi (マゴイ) to power their magical weapons and abilities. This energy must be used with care, as despite the fact that an individual's magoi can be restored with feeding and rest, once fully exhausted it causes their death. Among those that can perform magic with their own Magoi there is a rare class of magicians known as Magi (マギ), that can also use Magoi from the Rukh around them, greatly increasing their capabilities. A Magi usually chooses Dungeon Capturers to offer guidance and protection making them into their King Vessels (王の器). There are several nations in history that were founded or improved by the rule of such individuals.
Plot
Fourteen years before the story begins, a colossal dungeon emerges from the sea, drawing thousands who never return—until Aladdin, a boy harboring a Djinn named Ugo in his flute, and Alibaba Saluja, an ambitious young man, conquer it. Their journey starts when Alibaba, seeking to claim the dungeon Amon, allies with Aladdin after witnessing his power. Overcoming adversaries like the slaver Jamil and his warriors Morgiana and Goltas, they free Morgiana from mental enslavement. Upon victory, the Djinn Amon reveals Aladdin as a Magi, a guide to kings, and Alibaba as his chosen candidate. Forced to flee as the dungeon collapses, they separate: Aladdin is transported afar to learn his destiny, while Alibaba returns to Balbadd, using Amon's treasure to liberate slaves, including Morgiana.
Reuniting later, the trio encounters Sinbad, the legendary adventurer and king of Sindria. In Balbadd, Alibaba joins the Fog Troupe to oppose his tyrannical half-brother, Abhmad, and establishes a republic—only for the Kou Empire to annex the nation. Traveling to Sindria, they train to combat Al-Thamen, a clandestine group spreading chaos. With Hakuryuu Ren, a Kou prince, they conquer the dungeon Zagan before parting ways: Aladdin studies magic at Magnostadt Academy, Alibaba trains in the Reim Empire, Hakuryuu returns home, and Morgiana departs for the Dark Continent.
A year later, Aladdin and Alibaba reunite during a war against Magnostadt, whose leader unwittingly aids Al-Thamen's goal of reviving the destructive deity Ill Ilah. A global alliance forms to stop this, and at a subsequent summit, Aladdin reveals humanity's origins as transformed beings from another world, Alma-Torran. King Solomon, Aladdin's father, had sealed Ill Ilah and entrusted Ugo with creating their current world.
Hakuryuu and the Magi Judar then ignite a Kou civil war. Alibaba and Aladdin fail to sway Hakuryuu, now consumed by darkness, and a battle leaves Alibaba and Judar mortally wounded. Post-war, Sinbad enacts a plan for peace, while Alibaba is revived by Alma-Torran's people.