. During the
Western Zhou dynasty, it was a form of a daily clothing which was worn by the emperor and ordinary commoners. In the Zhou dynasty, it was worn by emperor when they were not at court, on sacrificial occasions by princes, and by scholars when they would pay their respects to their parents in the morning. According to the
Liji in the section
Yuzao, it was also a form of ritual clothing for the emperor, who wore it to salute the appearance of the sun outside the eastern gate and when he would listen to notification on the first day of the first month outside the southern gate; and by the
Princes of States who wore xuanduan when sacrificing ().
Ming dynasty During the reign of
Emperor Jiajing of Ming, sartorial reforms took place. Emperor Jiajing reformed
yanfu (i.e. daily casual or leisure clothes, worn at home by the emperor, the officials and by the appointed ladies of the court), especially those he, himself, had to wear when he was not engaged in official duties. Emperor Jiajing therefore sought the help of Grand Secretary Zhang Zong (1476–1539) to investigate the dress regulations which were governing the casual clothing in ancient time. Zhang Zong therefore consulted the
Lishu and found out that the xuanduan was most widely worn in ancient times beside the formal court attire,
mianfu; this led the Jiajing emperor to decree that the
yanfu of both the emperor and the officials had to be modelled after the xuanduan: According to the new regulations, the emperor's xuanduan (
yanbian guanfu, lit. 'Dress of the Casual Hat') was black () in colour and was decorated with 143 dragons, including a large dragon medallion at the front of the garment; it was also decorated with a green trim border. The royal princes had to wear a green xuanduan which was decorated with a green trim and decorated with two ranks badges of dragon design (
baohe guanfu, lit. 'Dress of Preserving Harmony'). The xuanduan used as the yanfu of the officials () were dark green in colour. Officials of the third rank and above had xuanduan decorated with cloud patterns while the xuanduan worn by the officials who ranked fourth and below wore plain xuanduan. == Design and construction ==