Detective fiction is a subgenre of crime fiction and mystery fiction in which an investigator or a detective—whether professional, amateur or retired—investigates a crime, often murder. The detective genre began around the same time as speculative fiction and other genre fiction in the mid-nineteenth century and has remained extremely popular, particularly in novels. Some of the most famous heroes of detective fiction include C. Auguste Dupin, Sherlock Holmes, and Hercule Poirot. Juvenile stories featuring The Hardy Boys, Nancy Drew, and The Boxcar Children have also remained in print for several decades.
Some scholars, such as R. H. Pfeiffer, have suggested that certain ancient and religious texts bear similarities to what would later be called detective fiction. In the Old Testament story of Susanna and the Elders (the Protestant Bible locates this story within the apocrypha), the account told by two witnesses broke down when Daniel cross-examines