By chance, the destitute Shen Lang discovers that his warehouse is connected to the Ming Dynasty palace, leading to a time-traveling encounter with the last emperor of the Ming Dynasty, Chongzhen. Initially wanting to kill this uninvited guest, Chongzhen Emperor learns that the Ming Dynasty only has one year left, establishing a basis for cooperation between them.