Malice Aforethought (1931) is a crime novel written by Anthony Berkeley Cox, using the pen name Francis Iles. It is an early and prominent example of the "inverted detective story", claimed to have been invented by R. Austin Freeman some years earlier. The murderer's identity is revealed in the first line of the novel, which gives the reader insight into the workings of his mind as his plans progress. It also contains elements of black comedy, and of serious treatment of underlying tensions in a superficially respectable community. It is loosely based on the real-life case of Herbert Armstrong, with elements of Doctor Crippen.
The central character is a Devon physician, Dr. Bickleigh, who is in an unhappy marriage to a domineering wife, Julia. Initially he has some hopes of divorcing Julia and marrying a younger woman, Madeleine, whom he is flirting with. However, his hopes of divorce fade, and he uses his medical knowledge to murder Julia so he can marry Madeleine. His method is a devious and some would say unusually cruel one: he slowly feeds her a chemical which gives her blinding headaches, which leads to her taking opium painkillers, so that she apparently dies of an accidental overdose of opium. He appears to get away with it, but one person who suspects the truth is Madeleine, who marries another man, and some people in the local community wrongly suspect that Julia committed suicide because of problems in their marriage. As Dr. Bickleigh realizes that Madeleine suspects what has happened, he attempts to poison her and her new husband; they survive, but this leads the authorities to become suspicious about the earlier death of Julia. Her body is exhumed and Dr. Bickleigh is put on trial for her murder.
The novel has been adapted for television twice.
The first was a four-part serial by the BBC in 1979, starring Hywel Bennett as Dr. Bickleigh, Cheryl Campbell as Madeleine, and Judy Parfitt as Julia. It later aired in 1981 was featured in the US PBS series, Mystery!, introduced by Vincent Price.
A second adaptation Malice Aforethought, starring Ben Miller as Dr. Bickleigh, Megan Dodds as Madeleine, and Barbara Flynn as Julia, was produced by Granada Television and broadcast on ITV in 2005. It too has been shown on Mystery! in 2005.