Loulie al-Nazari is the Midnight Merchant, a criminal who hunts and sells illegal magic. But when she saves the life of a prince, she is blackmailed by the sultan to find an ancient lamp that has the power to revive the barren land. Accompanied by the sultan's oldest son, her jinn bodyguard, and Aisha, one of the eldest prince's Forty Thieves, Loulie sets out to find the relic. The group soon faces attacks by ghouls, a fearsome ancient jinn queen, and the assassin that killed Loulie's family.