In this novel, the characters of Plantagenet Palliser, his wife Lady Glencora and their uncle the ailing Duke of Omnium are in the background. The plot centres on Lizzie Greystock, a fortune-hunter who ensnares the sickly, dissipated Sir Florian Eustace and is soon left a very wealthy widow and mother. While clever and beautiful, Lizzie has several character flaws; the greatest of these is an almost pathological delight in lying, even when it cannot benefit her. (Trollope comments that Lizzie sees lies as "more beautiful than the truth.") Before he dies, the disillusioned Sir Florian discovers all this, but does not think to change the generous terms of his will.
The diamonds of the book's title are a necklace, a family heirloom that Sir Florian gave to Lizzie to wear. Though they belong to her husband's estate (and thus eventually will be the property of her son), Lizzie refuses to relinquish them. She lies about the terms under which they were given to her, leaving their ownership unclear. The indignant Eustace family lawyer, Mr Camperdown, strives to retrieve the necklace, putting the Eustaces in an awkward position. On the one hand, the diamonds are valuable and Lizzie may not have a legal claim to them, but on the other, they do not want to antagonise the mother of the heir to the family estate (Lizzie having only a life interest).
Meanwhile, after a respectable period of mourning, Lizzie searches for another husband, a dashing "Corsair" more in keeping with her extravagantly romantic fantasies. She becomes engaged to a dull, but honourable politician, Lord Fawn, but they have a falling out when her character becomes better known, especially her determination to keep the diamonds. She then considers her cousin, Frank Greystock, even though he is already engaged to Lucy Morris, a poor but much beloved governess of the Fawn daughters. Greystock is a successful lawyer and Member of Parliament, but his income is inadequate to his position and spendthrift lifestyle. Lizzie believes he can shield her from the legal proceedings being initiated by Mr Camperdown. Another more Corsair-like possibility is one of the guests at her Scottish home, the older Lord George de Bruce Carruthers, a man who supports himself in a somewhat mysterious manner.
Among the other guests is a young woman named Lucinda Roanoke, whose financially straitened aunt, Mrs Carbuncle, is desperate to marry her off. Despite Lucinda's deep detestation of the brutish Sir Griffin Tewett, the aunt has her way and the mismatched couple become engaged.
Things take a dramatic turn on a trip to London. Lizzie, out of fear of Mr Camperdown, keeps her diamonds with her in a conspicuous strongbox. One night, at an inn, the strongbox is stolen and everybody assumes the jewellery is lost. As it turns out, Lizzie had taken the gems out and put them under her pillow, but acting on her first instincts, she perjures herself when she has to report the theft to the magistrate, thinking that she can sell the diamonds and let the robbers take the blame. Suspicion falls on both Lizzie and Lord George, acting either together or separately. In any case, the thieves, aided by Lizzie's disloyal maid, Patience Crabstick, try again and succeed in their second attempt. Lizzie feigns illness and takes to her bed. Lady Glencora Palliser pays Lizzie a visit to offer her sympathy.
The police begin to unravel the mystery, putting Lizzie in a very uncomfortable position. In the end, the diamonds are lost, the police discover the truth, and Lizzie is forced to confess her lies, though she escapes legal retribution since her testimony is needed to convict the criminals. Both Frank Greystock and Lord George become disgusted by her conduct and desert her. Lucinda Roanoke grows to loathe Sir Griffin more and more intensely until, on what would have been the day of their wedding, she loses her sanity. Frank Greystock returns to Fawn Court to marry Lucy Morris. Mr Emilius, a foreign crypto-Jewish clergyman, woos Lizzie while she is in a vulnerable state and succeeds in marrying her (though it is hinted earlier in the book and is later confirmed in Phineas Redux that he is already married).

Question: Why does Lizzie escape punishment for perjury?
Answer: Her testimony is needed to convict the thieves.
Alternative answer: Her testimony is needed in order to convict the criminals.