Mystery fiction

Mystery fiction (story, book, novel) is fictional work in which a professional or amateur detective investigates and solves a crime mystery. Usually the story begins with a crime and a few suspects, and ends when the protagonist detective identifies the criminal. 
Sometimes the term is used to refer to supernatural or suspense stories and thrillers.