Zhenwu rose to the height of his popularity during the Ming dynasty. The third Ming emperor, Yongle, credited Zhenwu for helping him secure the throne and ordered a massive temple building campaign at Wudang Shan, the place where Zhenwu is believed to have attained immortality and ascended to heaven. According to a folk legend, Yongle summoned a sculptor to the palace to commission the first image of Zhenwu. When the sculptor arrived, Yongle had just finished a bath. The emperor commanded the sculptor to create a true likeness of Zhenwu. The sculptor replied that he had never seen the god, to which Yongle replied 'look at me'. The sculptor then literally created the image of Zhenwu in the likeness of Yongle, fresh from the bath, hair slicked back and barefoot. Another version is told in the hagiography of Zhenwu published in 1602 by Yu Xiangdou. According to Yu, Zhenwu was getting ready for the day combing his hair, when heavenly envoys arrived with the announcement of his appointment as a heavenly emperor. He accepted the appointment, and after bowing in thanks, continued to comb his hair. To his astonishment, he found that he could not put his hair up. He was then informed by the heavenly messenger that since he had already accepted his heavenly appointment, his appearance was fixed, and he could no longer change his form. Other legends tell of Zhenwu engaging in a fierce battle with demons and emerging victorious but having lost his footwear and his hair coming undone.