After forensic pathologist Shen Du starts working the night shift at Jiangzhou’s Qinghuai Funeral Home, he is forced to deal with a constantly changing copy of the Night Shift Rules. Each corpse carries a set of deadly rules. Behind every taboo lie a fragment of folk tradition, a buried truth about a death, and someone controlling the rules. While others obey the rules to scrape by, Shen Du uses his forensic expertise, cool judgment, and ability to "dissect rules" to find loopholes in the taboos across a series of trials: the morgue, a Yellow River ferry crossing, a funeral home in western Hunan, a spirit hall in the Northeast, and a memorial hall on the seventh day after death. In the end, he discovers that the entire city is a gigantic soul-sealing formation with the funeral home as its entrance, and that he himself is the final "nail pinning a living corpse."