The Ring of Solomon

Back in Jerusalem, now in Khaba's service, Bartimaeus is commanded to perform many degrading jobs, including grain counting, sewage treatment, and artichoke collecting.

Bartimaeus uses his trademark wit to infuriate Khaba and the magician unleashes his flail upon the djinn and threatens to place them in his essence cages (devices similar to the Mournful Orb in The Amulet of Samarkand) should they displease him a second time.

At first, Khaba and his subordinate closely supervise the stages of construction but after a while they stop showing up at the building site and the attitudes of the djinn grow lax.

They begin assuming nonhuman forms and start using magic to build the temple (both actions directly in violation of Solomon's edicts).

Faquarl gains his freedom but Bartimaeus is imprisoned in a small bottle by Khaba and his principal slave, the marid Ammet, as punishment for his earlier crimes.

The pair sneak through the palace gardens and scale the tower wall to Solomon's chamber, evading obstacles through Bartimaeus' magical efforts.

Solomon then maintains that he never sent any ransom demand to Sheba, which causes Asmira to doubt herself and her loyalty to Queen Balkis.

In the end, Asmira refrains from killing the king, choosing instead to take the Ring back to Sheba in spite of Solomon's warnings and Bartimaeus' demoralising analysis of her motives.

In an unexpected move, he then puts the Ring on and commands the Spirit to seal Ammet inside a wine jar at the bottom of the sea for a few thousand years.

In the aftermath of the attack, Asmira willingly dismisses Bartimaeus, revealing her intention to turn down Solomon's offer in favour of choosing her own path in life, and the two part ways on friendly terms.