Sheppard was Mrs. Ferrars' blackmailer, and he murdered Ackroyd to stop him learning the truth from Mrs. Ferrars. Poirot gives the doctor two choices: either he surrenders to the police or, for the sake of his clean reputation and his proud sister, he commits suicide.