 Zhiyan’s access to the imperial court gave Fazang access to Empress Wu, with whom he quickly gained favor. He undertook a variety of public services, such as performing rain-prayer rituals and collaborating in various translation projects. He traveled throughout northern China, teaching the Avatamsaka Sutra and debating Daoists. He intervened in a 697 military confrontation with the Khitans, gaining further favor when Empress Wu ascribed to his ritual services an instrumental role in suppressing the rebellion. In addition, Fazang provided information to undermine plots by some of the empress’ advisors to secure power after her death. This secured Fazang’s status—and the prominence of Huayan teachings—with subsequent rulers. 