The drama is adapted from the novel of the same name written by Jung Eun Gwol. The titular character Hong Chun Gi is a real historical figure, while the novel mixes fact and fiction in its story. The story is set during the fictional Dan dynasty era when ghosts, demons and gods were involved in human life.