Detective fiction is a sub-genre of crime fiction and mystery fiction in which an investigator (often a detective), either professional or amateur, investigates a crime, often murder.