Female officials (nüguan 女官) were seen in the imperial palaces of all imperial dynasties. Parts of them were secondary consorts and concubines, but most of them were appointed to specific tasks in the management of the private quarters of the imperial palace. According to the ancient ritual classic Zhouli 周禮, the women were during the Zhou period 周 (11th. cent.-221 BCE) subordinated to the Ministry of State (tianguan 天官) and were classified into the ranks of the Nine Concubines (jiupin 九嬪), hereditary consorts (shifu 世婦), secondary concubines (nüyu 女御), female supplicants (nüzhu 女祝), and female scribes (nüshi 女史). There were also a lot of female craftspersons in the palace, like winemakers, soy sauce makers, pickle makers, tailors, and so on.
The Qin dynasty 秦 (221-206 BCE) gave up these designations and introduced the Six Matrons (liushang 六尚) supervising the service for headgear (shangguan 尚冠), the service for wardrobe (shangyi 尚衣), the service for food (shangshi 尚食), the service for bathing (shangmu 尚沐), the service for furniture (shangxi 尚席), and the service for writing (shangshu 尚書).
There were 14 ranks of female officials during the Han period 漢 (206 BCE-220 CE):
To these there were the ranks of Lady of Reverent Gentleness (gonghe 共和), Lady who Pleases the Spirit yuling 娛靈), Lady who Could Comfort a Multitude (baolin 保林), Lady of Excellent Employment (liangshi 良使) and Lady for Night Attendance (yezhe 夜者) added during the Later Han period 後漢 (25-220 CE).
- Lady of Bright Deportment (zhaoyi 昭儀)
- Lady of Handsome Fairness (jieyu 婕妤)
- Lady of Graceful Beauty (xing'e 娙娥)
- Lady of Lovely Countenance (ronghua 傛華)
- Beauty (meiren 美人)
- Consort (bazi 八子)
- Lady of Complete Deportment (chongyi 充依)
- Lady (qizi 七子)
- Virtuous Lady (liangren 良人)
- Senior Palace Woman (zhangshi 長使)
- Junior Palace Woman (shaoshi 少使)
- Lady for Miscellenous Uses (wuguan 五官)
- Lady of Complaisant Constancy (shunchang 順常)
- Lady Without Impurity (wujuan 無涓)
The short-lived Later Zhao dynasty 後趙 (319-350) increased the ranks to 18, later 24. This is somewhat different from the male officials that were ranked into 9 ranks (jiupin 九品), each with a half-rank, resulting in 18 ranks.
Terminology changed under the early years of the Tang period 唐 (618-907), so that there were 19 ranks of palace women (neiguan 内官) namely:
Emperor Xuanzong 唐玄宗 (r. 712-755) added the 1A ranks of Gracious Consort (huifei 惠妃), Elegant Consort (lifei 麗妃) and Splendid Consort (huafei 華妃).
- One person per rank, as consorts (furen 夫人), official rank 1A
- Honoured Consort (guifei 貴妃)
- Pure Consort (shufei 淑妃)
- Virtuous Consort (defei 德妃)
- Worthy Consort (xianfei 賢妃)
- One person per rank, as the Nine Concubines (jiupin 九嬪), official rank 2A
- Lady of Bright Deportment (zhaoyi 昭儀)
- Lady of Bright Countenance (zhaorong 昭容)
- Lady of Bright Beauty (zhaoyuan 昭媛)
- Lady of Cultivated Deportment (xiuyi 修儀)
- Lady of Cultivated Countenance (xiurong 修容)
- Lady of Cultivated Beauty (xiuyuan 修媛)
- Lady of Complete Deportment (chongyi 充儀)
- Lady of Complete Countenance (chongrong 充容)
- Lady of Complete Beauty (chongyuan 充媛)
- Lady of Handsome Fairness (jieyu 婕妤); nine persons, official rank 3A
- Beauty (meiren 美人); four persons, official rank 4A
- Lady of Talents (cairen 才人); five persons, official rank 5A
- Lady of Precious Bevy (baolin 寳林); 27 persons, official rank 6A
- Secondary Concubine (yunü 御女); 27 persons, official rank 7A
- Lady of Elegance (cainü 采女); 27 persons, official rank 8A
In the palace service (gongguan 宮官 "palace officials") were 24 directresses (si 司, rank 3A), 24 managers (dian 典, rank 6A) assisting them, and 24 handlers or leaders (zhang 掌, lower official ranks) in the third line. They were grouped into the general palace service (shanggong 尚宮), ceremonial sercive (shangyi 尚儀), wardrobe service (shangfu 尚服), food service (shangshi 尚食), housekeeping service (shangqin 尚寢) and workshops service (shanggong 尚功), each section thought as a parallel to the six ministries (liubu 六部) and headed by one of the six matrons (liushang, rank 3A). Accordingly, each of the six services was divided into four offices headed, for instance, by the directress of records (siji 司記), directress of communications (siyan 司言), directress of registration (sipu 司簿), directress of inner gates (siwei 司闈), directress of the library (siji 司籍), directress of music (siyue 司樂), directress of visitors (sibin 司賓), directress of ritual receptions (sizan 司贊), directress of seals (sibao 司寳), or the recorder of imperial intercourse (tongshi 彤史). The four consorts and nine concubines were not integrated into this service structure. The consorts had the task of advising the empress (huanghou 皇后), like the counselors deliberated political matters with the emperor. The nine concubines were used for the ritual instruction of all palace women. The "Beauties" (meiren) handled offerings and the reception of guests. The Ladies of Talent (cairen) arranged the banquets, the ceremonial silk spinning, and received the tributes to the empress.
A similar system was used for the women of the household of princes with two Related ladies of excellence (liangdi 良娣, rank 3A), six *Filial ladies of excellence (liang'ai 良嬡, rank 4A), ten Ladies of inherent excellence (chenghui 承徽, rank 5A), 16 Ladies of clear instruction (zhaoxun 昭訓, rank 7A) and 24 Ladies of decorous service (fengyi 奉儀, rank 9A), each of them managing the various offices of their domain.
The Ming dynasty perpetuated this system of the six services with the service bureaus (liuju 六局). Female officials were to be selected after a kind of examination with the degree of "cultivated talent" (nü xiucai 女秀才).
There were in total 187 positions to be occupied. Girls serving in the palace were allowed to return to their parents after five or six years, in order to await marriage. Service in the imperial palace greatly raised the "value" of a girl ready for marriage. The tasks of the palace women were from the Yongle reign 永樂 (1403—1424) on exclusively managed by eunuchs, except that of seal-keepers 留司宝，掌收贮宝玺.
He Xuzhi 賀旭志 (ed. 1991). Zhongguo lidai zhiguan cidian 中國家歷代職官辭典, p. 266. Changchun: Jilin wenshi chubanshe.
Lü Zongli 呂宗力 (ed. 1994). Zhongguo lidai guanzhi da cidian 中國歷代官制大辭典, p. 70. Beijing: Beijing chubanshe.
Shi Tong 石彤 (1995), "Nüguan 女官", in: Lu Leshan 盧樂山 (ed.), Zhongguo nüxing baike quanshu 中國女性百科全書, Wenhua jiaoyu 文化教育, p. 510. Shenyang: Dongbei daxue chubanshe.
Xue Hong 薛虹 (ed. 1998). Zhongguo huangshi gongting cidian 中國皇室宮廷辭典, p. 417. Changchun: Jilin wenshi chubanshe.
Zhang Zhenglang 張政烺 (ed.1990). Zhongguo gudai zhiguan da cidian 中國古代直觀大辭典, p. 84. Zhengzhou: Henan renmin chubanshe.
Translation of terms, as far as possible, according to Charles O. Hucker (1985). A Dictionary of Official Titles in Imperial China. Stanford, Ca.: Stanford University Press.