In the German spa town of Wildbad, the Englishman Mr. Neal is asked to transcribe the deathbed confession of Allan Armadale; his story concerns his murder of the man he had disinherited (also called Allan Armadale), who had subsequently married the woman he was betrothed to under false pretensions. Under Allan's instructions, the confession is left to be opened by his son once he comes of age.
Nineteen years later, the son of the murdered man, also Allan Armadale, rescues a man of his own age—Ozias Midwinter. The stranger reveals himself to Reverend Decimus Brock, a friend of Allan through his late mother, as another Allan Armadale (the son of the man who committed the murder). Ozias tells Brock of his desperate upbringing, having run away from his mother and stepfather (Mr. Neal). The Reverend promises not to disclose their relation to one another, and the young men become close companions. Ozias remains haunted by a fear that he will harm Allan as a result of their proximity, a fate warned of in his father's letter; this feeling intensifies when the pair spend a night on a shipwreck off the Isle of Man—as it turns out, the very ship on which the murder was committed. Also on the vessel, Allan has a mysterious dream involving three characters; Ozias believes that the events are prophesy of the future.
Three members of Allan's family die in mysterious circumstances, one of which was instigated in the rescue of a woman who attempted to commit suicide by drowning. As a result, Allan inherits the estate of Thorpe-Ambrose in Norfolk and relocates there with Ozias, intending to make him steward. Once there he falls in love with Eleanor (Neelie) Milroy, the sixteen-year-old daughter of Major Milroy, to whom he has rented a cottage. During this time, correspondence takes place between Maria Oldershaw and Lydia Gwilt concerning the latter's ambitions to marry Allan as a means of achieving retribution for his family's apparent wrongdoings (she was originally a maid in the service of his mother).
Lydia, who is thirty-five but looks twenty-something, is the villain of the novel and her colourful portrayal takes up much of the rest of the story. Originally Allan's mother's maid, and a contributor to the conflict between Allan's and Ozias's fathers, she is a fortune-hunter and, it turns out, a murderess. Unable to alienate Allan's affections from Miss Milroy, she settles for marrying Midwinter, having discovered his name is the same. She plots to murder Allan—or to have him killed by her ex-husband, a Cuban desperado—and, since she is now "Mrs. Armadale," to impersonate his widow. Allan escapes the desperado's attempt on his life—he is supposed to have drowned in a shipwreck—and returns to England. Lydia's plans are thus foiled. Her last shot is to murder Allan herself—the weapon being poison gas, the scene being a sanatorium run by a quack called Doctor Downward—but she is thwarted by her own conscience. Midwinter and Allan have switched rooms, and she can't bring herself to murder her true husband, for whom she does have genuine feelings of love. After rescuing Midwinter and writing him a farewell note, she goes into the air-poisoned room and kills herself. Allan marries Miss Milroy; Midwinter, still his best friend, becomes a writer.
Some linking passages consist of letters between the various characters, or of extracts from Lydia's journal, but the great majority of the text narrates the events as they occur. The novel is enlivened by many minor characters including Mr Bashwood, an old failure of a clerk who is infatuated with the beautiful Lydia; his son, James Bashwood, a private detective; Mrs Oldershaw, an unscrupulous associate of Lydia's; the Pedgifts (father and son), Allan's sometime lawyers; and the Rev Decimus Brock, a shrewd (but not quite shrewd enough) clergymen who brings Allan up but who is kept out of the way for much of the book.
Is the dream to be interpreted rationally or superstitiously, as Midwinter does? The question is never resolved.
“The distortions of the plot, the violent and irrational reactions of the characters, reflect and dramatise the ways in which his readers’ perceptions were distorted by the assumptions and hypocrisies of the society in which they lived," writes Catherine Peters.
In the end, the novel is a story of redemption that teaches that the sins of the fathers are not necessarily visited on the children, and the son of a murderer can turn out good. Collins was to take this up again later in The Legacy of Cain.

Question: Who was Allan's mother's maid?
Answer: Lydia Gwilt
Alternative answer: Lydia