After dying in a lab accident, modern man Lin Yang is reborn as a foolish son-in-law in ancient times, saved by a powerful AI chip. He exposes a plot against him, divorces his wife, and marries Princess Xuehe, a mighty Martial Saint. Using his genius, he defeats corrupt officials, stops a plague, and kills Bai Xuan. When Beirong invades, Lin Yang kills its commander and joins the Princess in defending their homeland.