Having lost both her job and her relationship, modern girl Song Zhaozhao rents a haunted house to cut living expenses. Unexpectedly, the ancient bed inside connects two different time-spans, letting her share the same bed with Xiao Jingtian, the tyrant emperor of the Yan Dynasty three thousand years ago.
The two strike a deal. Song Zhaozhao travels through time to deliver modern flu medicine to the ancient era, helping Xiao Jingtian get through the deadly plague. When veteran court officials openly question and doubt Xiao Jingtian's authority, Song Zhaozhao crosses time once again and brings him crucial supplies to turn the tide.