A detective is someone whose job is to discover what has happened in a crime or other situation and to find the people involved. Some detectives work in the police force and others work privately.
In Britain 'detective' is used before words such as 'constable' or 'sergeant', and in the U.S. the word 'detective' is used on its own, to indicate that a police officer is a member of the department concerned with investigating crimes.