After helping a New York police team led by Det. Kate Beckett solve a murder case in which the killer simulates an idea in his book, the successful murder-mystery writer Richard Castle uses his friendship with the mayor to join theteam to investigate other murder cases. Thanks to the experience, he develops his next series of books revolving around Det. Nikki Heat, a female protagonist inspired by Beckett.