Proto-science and crime fictions have been composed across history, and in this category can be placed texts as varied as the
Epic of Gilgamesh from
Mesopotamia, the
Book of Tobit,
Urashima Tarō from
ancient Japan, the
One Thousand and One Nights (
Arabian Nights), and more. One example of a story in this genre is the medieval
Arabic tale of "
The Three Apples", one of the tales narrated by
Scheherazade in the
Arabian Nights. In this tale, a fisherman discovers a heavy locked chest along the
Tigris River, and he sells it to the
Abbasid Caliph,
Harun al-Rashid, who then has the chest broken open, only to find inside it the dead body of a young woman who was cut into pieces. Harun orders his
vizier,
Ja'far ibn Yahya, to solve the crime and find the murderer within three days, or be executed if he fails his assignment. The story has been described as a "
whodunit" murder mystery with multiple
plot twists. The story has
detective fiction elements. Two other
Arabian Nights stories, "The Merchant and the Thief" and "Ali Khwaja", contain two of the earliest
fictional detectives, who uncover clues and present evidence to catch or convict a criminal, with the story unfolding in normal chronology and the criminal already being known to the audience. The latter involves a climax where titular detective protagonist Ali Khwaja presents evidence from
expert witnesses in a court. "
The Hunchback's Tale" is another early
courtroom drama, presented as a suspenseful comedy. His brilliant and eccentric detective
C. Auguste Dupin, a forerunner of
Arthur Conan Doyle's
Sherlock Holmes, appeared in works such as "
The Murders in the Rue Morgue" (1841), "
The Mystery of Marie Rogêt" (1842), and "
The Purloined Letter" (1844). With his Dupin stories, Poe provided the framework for the classic detective story. The detective's unnamed companion is the narrator of the stories and a prototype for the character of
Dr. Watson in later Sherlock Holmes stories.
Wilkie Collins' epistolary novel
The Woman in White was published in 1860, while
The Moonstone (1868) is often thought to be his masterpiece. French author
Émile Gaboriau's
Monsieur Lecoq (1868) laid the groundwork for the methodical, scientifically minded detective. The evolution of
locked-room mysteries was one of the landmarks in the history of crime fiction. The
Sherlock Holmes mysteries of Doyle's are said to have been singularly responsible for the huge popularity of this genre. A precursor was
Paul Féval, whose series
Les Habits Noirs (1862–67) features
Scotland Yard detectives and criminal conspiracies. The best-selling crime novel of the 19th century was
Fergus Hume's
The Mystery of a Hansom Cab (1886), set in Melbourne, Australia. The evolution of the print
mass media in the United Kingdom and the United States in the latter half of the 19th century was crucial in popularising crime fiction and related genres. Literary 'variety' magazines, such as
Strand, ''
McClure's, and Harper's'', quickly became central to the overall structure and function of
popular fiction in society, providing a
mass-produced medium that offered cheap, illustrated publications that were essentially disposable. Like the works of many other important fiction writers of his day—e.g. Wilkie Collins and
Charles Dickens—Arthur Conan Doyle's Sherlock Holmes stories first appeared in serial form in the monthly
Strand in the United Kingdom. The series quickly attracted a wide and passionate following on both sides of the Atlantic, and when Doyle killed off Holmes in "
The Final Problem", the public outcry was so great, and the publishing offers for more stories so attractive, that he was reluctantly forced to resurrect him. In Italy, early translations of English and American stories and local works were published in cheap yellow covers, thus the genre was baptized with the term
libri gialli or yellow books. The genre was outlawed by the Fascists during
WWII, but exploded in popularity after the war, especially influenced by the American
hard-boiled school of crime fiction. A group of mainstream Italian writers emerged, who used the detective format to create an antidetective or postmodern novel in which the detectives are imperfect, the crimes are usually unsolved, and clues are left for the reader to decipher. Famous writers include
Leonardo Sciascia,
Umberto Eco, and
Carlo Emilio Gadda. In Spain,
The Nail and Other Tales of Mystery and Crime was published by
Pedro Antonio de Alarcón in 1853. Crime fiction in Spain (also curtailed in
Francoist Spain) took on some special characteristics that reflected the culture of the country. The Spanish writers emphasized the corruption and ineptitude of the police, and depicted the authorities and the wealthy in very negative terms.
Cheng Xiaoqing, considered the "Grand Master" of 20th-century Chinese detective fiction, translated Sherlock Holmes into classical and vernacular Chinese. In the late 1910s, Cheng began writing his own detective fiction series,
Sherlock in Shanghai, mimicking Conan Doyle's style, but relating better to a Chinese audience. During the
Mao era, crime fiction was suppressed and mainly Soviet-styled and anticapitalist. In the post-Mao era, crime fiction in China focused on corruption and harsh living conditions during the Mao era (such as the
Cultural Revolution). The Golden Age also had roots in the US. As used by
S. S. Van Dine, fictional character
Philo Vance also took advantage of an inflated personality and a high-class background in a plethora of novels. In 1929, Father
Ronald Knox wrote the ‘Detective Story Decalogue,’ mentioning some conditions of the era. Early foreshadowing and functioning roles for characters were discussed, as well as other items.
Ellery Queen was featured in several novels written by
Frederic Dannay and
Manfred Lee, serving as both a character and pen name. In such novels, clues may be analyzed by the protagonist in tandem with the viewer, generating the possibility of understanding the narrative before it is revealed in the book. There was a shift into
hard-boiled novels and their depictions of realism.
Dashiell Hammett and his work, including
Red Harvest (1929), offered a more realistic social perspective to crime fiction, referencing events such as the
Great Depression.
James M. Cain contributed
The Postman Always Rings Twice (1934). This novel includes a married woman trying to murder her own husband with the assistance of a potential suitor. This theme extends to another of his works,
Double Indemnity (1934). Such elements of both books are references to the
Gray and Snyder trial.
Raymond Chandler was a significant author who managed to see some works made into films. In 1944, he argued for the genre to be seen critically in his essay "
The Simple Art of Murder". ==Psychology==