The book begins shortly after the ending of
The Colour of Magic, with
wizard Rincewind, the tourist
Twoflower, and the Luggage falling from the Discworld. They are saved when the
Octavo, the most powerful book of magic on the Discworld, readjusts reality to prevent the loss of one of its eight spells. The spell had lodged in Rincewind's head when he was a student at
Unseen University. Rincewind, Twoflower and the Luggage end up in the Forest of Skund. The wizards of
Ankh-Morpork use the Rite of Ashk-Ente to summon
Death to find an explanation for the Octavo's actions. Death warns them that the Discworld will soon be destroyed by a huge red star unless the eight spells of the Octavo are read. Several orders of wizards travel to the forest of Skund to capture Rincewind, who is currently staying with Twoflower and the Luggage in a
gingerbread house in the forest. In the subsequent chaos, Rincewind and Twoflower escape on an old witch's broom. The Archchancellor of Unseen University attempts to obtain the spell, but accidentally summons the Luggage on top of him, crushing him to death. His apprentice, Ymper Trymon, uses the opportunity to advance his own power, intending to obtain the eight spells for himself. Rincewind and Twoflower encounter a sect of druids who have assembled a "computer" from large
standing stones, and learn of the approaching red star. As Twoflower attempts to stop the druids from sacrificing a young woman named Bethan, Cohen the Barbarian, an octogenarian parody of
Conan, attacks the druids. Twoflower is poisoned in the battle, forcing Rincewind to travel to
Death's Domain to rescue him. The pair narrowly avoid being killed by
Ysabell, Death's adopted daughter. As they escape, the Octavo tells Rincewind that it had arranged for its eighth spell to escape into his head, to ensure the spells could not be used before the appointed time. Rincewind and Twoflower travel with Cohen and Bethan to a nearby town, where the toothless Cohen leaves to have
dentures made, having learned of them from Twoflower. Rincewind, Twoflower and Bethan are attacked by a mob of people who believe the star is coming to destroy the Discworld in response to the presence of magic. The trio escape into a magical travelling shop, one of many that sell strange and sinister goods and vanish inexplicably the next time a customer tries to find them. These shops travel the multiverse, set adrift by a sorcerer's curse on the shopkeeper for not having something in stock. The three are able to return to Ankh-Morpork via the shop. As the star comes nearer and the magic on the Discworld weakens, Trymon tries to put the seven spells still in the Octavo into his mind, in an attempt to save the world and gain ultimate power. However, the spells prove too strong for him and his mind becomes a door into the "Dungeon Dimensions", home of terrifying
eldritch creatures. Rincewind and Twoflower manage to kill the now-mutated Trymon. Rincewind reads all eight of the Octavo's spells aloud. This causes eight moons of the red star to crack open, birthing eight infant world-turtles. They follow their parent
Great A'Tuin, the massive turtle who carries the Discworld, on a course away from the star. The Octavo falls and is eaten by the Luggage. Cohen and Bethan leave to get married. Twoflower and Rincewind part company as Twoflower decides to return home, leaving the Luggage with Rincewind as a parting gift. Rincewind decides to re-enroll in the university, believing that with the spell out of his head, he will finally be able to learn magic. ==Characters==