The Detective Before Sherlock: The Early Pioneers of Crime Fiction.
When we think of the first fictional detective, the name that leaps to mind is almost always Sherlock Holmes. But Holmes's first appearance in A Study in Scarlet (1887) came more than four decades after the detective story had already established its conventions, its tropes, and most of its enduring reader pleasures. By the time Arthur Conan Doyle introduced the deerstalker and the magnifying glass, a generation of readers had already fallen in love with brilliant investigators, dark city streets, wrongfully accused suspects, and the quiet satisfaction of the locked-room puzzle.
The pre-Holmes detective story is a fascinating laboratory of the genre — a period when writers were inventing, by trial and error, almost every device that crime fiction would rely on for the next century and a half. Some of these stories are still genuinely thrilling to read. Others are fascinating precisely because they show the machinery before it was perfected.
The Ratiocinative Tradition: Poe and the First Detective
The uncontested starting point is Edgar Allan Poe's The Murders in the Rue Morgue (1841), which introduced C. Auguste Dupin — a man of immense analytical power who solves a brutal double murder without leaving his armchair. Poe called his story a "tale of ratiocination," and in that coinage he captured the essence of what would become the detective genre: the story is not really about the crime; it is about the act of thinking through the crime.
Poe established several conventions in that single story that would become genre law. The brilliant but eccentric detective. The admiring but less perceptive friend-narrator (the template for Watson). The baffled official police who are competent but lack imagination. The seemingly impossible crime that yields to pure logic. And the dramatic final scene in which the detective assembles the suspects and reveals the solution.
He wrote only three Dupin stories — The Murders in the Rue Morgue, The Mystery of Marie Rogêt (1842), and The Purloined Letter (1844) — but those three stories established the template for the entire genre. Every detective story since, from Holmes to Poirot to Columbo, carries some trace of Poe's original design.
Émile Gaboriau and the Police Procedural
If Poe invented the detective story in its abstract, puzzle-oriented form, the French writer Émile Gaboriau moved it toward something more recognisably modern. His detective, Monsieur Lecoq, first appeared in The Widow Lerouge (1866), and Lecoq is a very different creature from Dupin. Where Dupin reasons from the armchair, Lecoq works the scene: he examines footprints, studies cigar ash, analyses handwriting, and reconstructs the timeline of a crime with almost forensic precision.
Gaboriau was writing in a France that had recently professionalised its police detective force under Eugène François Vidocq (a real-life ex-convict turned crime-fighter whose memoirs were themselves a bestseller). His novels are early examples of the police procedural — stories in which the method of investigation is as important as the investigator's personality. Gaboriau's novels were hugely popular in translation, especially in Britain and the United States, and they did something Poe's stories never quite attempted: they sustained a full novel-length mystery with multiple suspects, red herrings, and a complex revealed backstory.
Conan Doyle read Gaboriau and acknowledged his influence. Holmes himself, in A Study in Scarlet, dismisses Lecoq as "a miserable bungler" — the classic sign of a literary debt repaid through denial.
Wilkie Collins and the Sensation Novel
Wilkie Collins never exactly wrote detective stories in the modern sense, but his two great novels — The Woman in White (1859) and The Moonstone (1868) — are foundational to the genre in a different way. The Moonstone is often called the first English detective novel, and it is not hard to see why. It features a stolen gem, a country house full of suspects, a professional detective (Sergeant Cuff, based on a real Scotland Yard officer), and a narrative structure that presents the investigation through multiple, sometimes conflicting, testimonies.
What Collins understood — and what pre-Holmes crime fiction generally did well — was that the mystery genre thrives on narrative unreliability. The reader cannot solve the puzzle if they are told the truth. Collins solved this problem by having his story told by a series of unreliable witnesses: each narrator knows only part of the truth, and the reader must assemble the whole picture from fragments. This technique reappears constantly in modern crime fiction, from The Name of the Rose to Gone Girl.
The Female Pioneers: Anna Katharine Green and "the Other" Tradition
One of the most surprising gaps in the popular history of crime fiction is the near-erasure of Anna Katharine Green. Her first novel, The Leavenworth Case (1878), was an enormous bestseller — and it was written by a woman. Green published twenty-five novels over a forty-year career, and her detective, Ebenezer Gryce, is a methodical, professional New York police detective who could be read as an ancestor of the modern procedural protagonist.
But Green's deeper contribution to the genre was her attention to the legal and social realities of crime. Her novels often hinge on questions of inheritance law, property rights, and the limited legal standing of women in the nineteenth century. She understood that a detective story could be, at the same time, a novel of social critique — a lesson that later writers like Dorothy L. Sayers and P. D. James would carry forward.
What the Pioneers Knew
Reading the pre-Holmes detective story today, what strikes the contemporary reader is not how primitive these stories are but how complete. Almost every device of the modern crime novel was already in place by 1880: the locked-room puzzle, the brilliant eccentric detective, the baffled official police, the multiple-suspect structure, the trial-by-testimony narrative, the forensic detail, the social critique concealed inside a genre plot.
What changed after Holmes was not the invention of new devices but the perfection of existing ones — and, crucially, the personality of the detective hero. Holmes is not more intelligent than Dupin or more methodical than Lecoq. What he has that they lack is charisma, eccentricity, and a fully-realised private life. The pre-Holmes detective is often a function: he solves puzzles. Holmes is a person: he plays the violin, uses cocaine when bored, and has a fraught relationship with his own genius. That step — from function to character — is the one that turned a genre into a literary tradition.