In an England in which wizards are the aristocracy and run the government, and ordinary people are beginning a revolt, apprentice magician Nathaniel is humiliated by a powerful government official, Lovelace, and devotes his life to revenge. Finding his master, Mr. Underwood, weak both in character and magic, he teaches himself from books, and finds in himself a level of talent that no one else suspects.
To begin his revenge, he calls up a powerful djinn, Bartimaeus, and orders him to steal the powerful amulet of Samarkand from Lovelace, and hide it in Underwood's study. But he has underestimated both the power of his opponent and the complexity of the politics involved, and he soon finds himself in far over his head, with only his captive, restive, and contemptuous djinn to protect him.