It begins in the mountains of the Hejaz. Aben-Zohayr, a defeated Arab chieftain, falls for the houri Fayzuly and sells his soul to Eblis to have her; she flees and the valley is cursed. Nearly nine centuries later Abu-Kalek, an old warrior of Boabdil’s, receives from the dead king and the houri Rhadhyah their son, Aben-al-Malek, who grows up in an Alhambra raised by genies in the desert. As a young man the prince dreams of a woman: she is Fayzuly, spellbound in a tower in Granada.
The novel then goes back to the thirteenth century. Al-Hhamar, the king who begins the dynasty of Granada, follows a white gazelle into a cave, where the genie of the Future shows him in the smoke what is to come. His younger son, Juzef, fifteen, loves Betsabé, a slave the Jewish merchant Absalon keeps in chains, who has tiny bat wings on her back. She is a cursed fairy: if the king builds a castle on the Red Hill and a tower over the chasm at its foot, she and her sisters Djeidah, Zahra and Obeidah will be turned into bats.
To prevent it, Betsabé wants to become sultana and to see the king dead. Her sisters seduce three rebel governors, of Málaga, Guadix and Comares, while Bib-Rambla square hosts the festivities for the heir, with a bewitched bull and a knight in green with a bat on his shield. Sultana Wahdah, Juzef’s mother, forces Absalon to tell her the story of Djeouar, a juggler who inherited a sorcerer’s skull, and in it she discovers her own origins.
It is a book of legends within legends, told in the ornate language of Eastern tales.
The ending (spoilers)
Juzef saves his father from the governors’ uprising and is given Betsabé as his wife, but, in her power, he pours poison into the water the king uses for his ablutions. Guided by Djeouar’s spirit, Wahdah obtains the carpet of Solomon’s throne, takes the seal ring from Betsabé and orders the genies to build the Alhambra in a single night: the Tower of the Seven Floors rises over the chasm and the four fairies become bats. Al-Hhamar wakes with no memory of the vision, though in it he forgave his son; everything happens as he dreamed it, and he dies of poison a moon later. Fifteen years after the fall of Granada, Aben-al-Malek enters the tower and overcomes a temptation on each floor: idleness, wealth, envy, wrath, gluttony, pride and, on the last, Betsabé herself, whom he stabs. As he carries the sleeping Fayzuly away, the repentant Juzef and Djeouar confront Aben-Zohayr and die forgiven; the lovers escape to the Alhambra of the Hejaz. Aben-Zohayr remains damned, and every Midsummer Night at twelve he rides out of the tower on his headless horse: “¡Ay del desventurado que vea a esa hora el caballo sin cabeza!” (“Woe to the wretch who sees the headless horse at that hour!”).