 Emperor Shizong's reign (1161–1189) was remembered by the posterity as the time of comparative peace and prosperity, and the emperor himself was compared to the mythological rulers Yao and Shun.Emperor Shizong's grandson, Emperor Zhangzong (r. 1189–1208), venerated Jurchen values, but he also immersed himself in Han Chinese culture and married an ethnic Han Chinese woman.The "Taihe Code of law" was promulgated in 1201 and was based mostly on the Tang Code.