The narrative begins with a careless boy named Aladdin, whose idle ways break his father's heart and leave his mother in poverty. A cunning African magician approaches the boy, pretending to be his long-lost uncle, and leads him to a desolate mountain valley. Beneath a stone slab lies a subterranean treasure house containing a simple oil lamp of immense power. When the magician tries to trap him underground, Aladdin inadvertently discovers that rubbing a magical ring summons a powerful servant capable of delivering him from peril.
Safely returned home, Aladdin and his mother soon discover the true properties of the dust-covered lamp. Rubbing it conjures another formidable entity that provides lavish meals, silver, and boundless riches. Transformed by wealth and driven by an impossible longing, Aladdin sets his sights on the Sultan's daughter, the Princess. His mother approaches the royal court bearing sparkling jewels harvested from the subterranean garden, eventually winning a conditional promise of marriage after a three-month delay.
When the Grand Vizier attempts to supplant Aladdin by marrying his own son to the Princess, Aladdin uses the lamp to halt the wedding. He commands the genie to transport the newlyweds' bed to his own chamber, isolating the terrified groom and claiming his rightful place beside the Princess. Following this intervention, Aladdin presents the Sultan with extravagant gifts carried by scores of slaves, proving his worthiness and securing the marriage alongside a magnificent palace built overnight by the genie.
The peace is shattered when the surviving African magician traces the stolen lamp to Aladdin's prosperous court. Posing as a merchant offering new lamps for old, the magician tricks the unsuspecting Princess into trading the priceless artifact. The palace, the Princess, and the magician vanish instantly into the deserts of Africa, leaving a despairing Aladdin condemned to death by the bewildered Sultan.
Grated a final period of grace, Aladdin uses his remaining ring to travel to Africa, where he reunites with the Princess. Together, they orchestrate a cunning deception, luring the magician with poisoned wine to reclaim the lamp and restore the palace to its rightful place in China. Even after this victory, a final threat emerges when the dead magician's brother infiltrates the household disguised as a holy woman, planting a fatal desire for a roc's egg that nearly destroys them all.
Warned by the faithful genie just in time, Aladdin unmasks the assassin and strikes him down. The story concludes with Aladdin ascending the throne after the Sultan's death, reigning over a long line of monarchs and leaving behind a legacy forged through trials of wit, magic, and survival.