Crime fiction is the genre of fiction that eals with crimes, their detection, criminals and their motives. It is usually distinguished from mainstream fiction and other genres such as science fiction or historical fiction, but boundaries can be, and indeed are, blurred. It has several sub-genres, including detective fiction (including the whodunnit), legal thriller, courtroom drama and hard-boiled fiction.