After a serial killer imitates the plots of his novels, successful mystery novelist Richard "Rick" Castle gets permission from the Mayor of New York City to tag along with an NYPD homicide investigation team for research purposes.
Working from his home in a converted windmill, Jonathan Creek is a magician with a natural ability for solving puzzles. He soon puts this ability to the use of solving impossible crimes and mysterious murders.
Det. Supt. Peter Boyd (played by Trevor Eve) is the leader of a multi-discipline police team of detectives and scientists, the Cold Case Squad, which investigates old, unsolved murder cases using modern methods and new technology that may not have been available during the original investigation.