 This edict remained in place until 674, when Empress Wu Zetian came to power.At the same time, Louguan also served as a refuge for Daoists fleeing the persecution of Emperor Wu of the Liang dynasty to the south.The final Northern Celestial Master, Yin Wencao arrived at Louguan in 636 and later achieved the favor of the Gaozong Emperor.