During Emperor Ruizong's reign
As of 685, during the reign of Emperor Gaozong's son , Pei Judao was serving as the minister of justice, when Emperor Ruizong's mother, the regent gave Pei the designation of ''Tong Fengge Luantai Sanpin'' , making him a ''de facto''. Later that year, he was made ''Neishi'' -- the head of the legislative bureau of government and a post considered one for a chancellor. In 687, he was made ''Nayan'' -- the head of the examination bureau of government , also a post considered one for a chancellor. Around the new year 689, Empress Dowager Wu, who had by that point taken up permanent residence in the eastern capital Luoyang, made Pei the official in charge of the capital Chang'an. Sometime during his service as chancellor, she created him the Duke of Yi.