{
 "id": "epx0chz6sr",
 "slug": "beili-zhi",
 "title": "Beili Zhi",
 "updated": "2026-10-15",
 "topic_path": [
  {
   "id": "society",
   "label": "Society and history",
   "api_url": "https://www.edgepedia.org/api/v1/topics/society"
  },
  {
   "id": "society.history",
   "label": "History and archaeology",
   "api_url": "https://www.edgepedia.org/api/v1/topics/society.history"
  },
  {
   "id": "society.history.asia",
   "label": "Asian history",
   "api_url": "https://www.edgepedia.org/api/v1/topics/society.history.asia"
  },
  {
   "id": "society.history.asia.china",
   "label": "China",
   "api_url": "https://www.edgepedia.org/api/v1/topics/society.history.asia.china"
  },
  {
   "id": "society.history.asia.china.tang-late",
   "label": "Late Tang (820 to 907)",
   "api_url": "https://www.edgepedia.org/api/v1/topics/society.history.asia.china.tang-late"
  },
  {
   "id": "society.history.asia.china.tang-late.late-tang-institutions-works-and-religio",
   "label": "Late Tang institutions, works, and religion",
   "api_url": "https://www.edgepedia.org/api/v1/topics/society.history.asia.china.tang-late.late-tang-institutions-works-and-religio"
  }
 ],
 "geo": [
  {
   "id": "geo.chn.t500.society.history.asia.china.tang-late.late-tang-institutions-works-and-religio",
   "label": "China · 500 BC to AD 999: Late Tang institutions, works, and religion",
   "api_url": "https://www.edgepedia.org/api/v1/geo/geo.chn.t500.society.history.asia.china.tang-late.late-tang-institutions-works-and-religio",
   "path": [
    {
     "id": "geo.chn",
     "label": "China",
     "api_url": "https://www.edgepedia.org/api/v1/geo/geo.chn"
    },
    {
     "id": "geo.chn.t500",
     "label": "China · 500 BC to AD 999",
     "api_url": "https://www.edgepedia.org/api/v1/geo/geo.chn.t500"
    },
    {
     "id": "geo.chn.t500.society",
     "label": "Society and history",
     "api_url": "https://www.edgepedia.org/api/v1/geo/geo.chn.t500.society"
    },
    {
     "id": "geo.chn.t500.society.history",
     "label": "History and archaeology",
     "api_url": "https://www.edgepedia.org/api/v1/geo/geo.chn.t500.society.history"
    },
    {
     "id": "geo.chn.t500.society.history.asia",
     "label": "Asian history",
     "api_url": "https://www.edgepedia.org/api/v1/geo/geo.chn.t500.society.history.asia"
    },
    {
     "id": "geo.chn.t500.society.history.asia.china",
     "label": "China",
     "api_url": "https://www.edgepedia.org/api/v1/geo/geo.chn.t500.society.history.asia.china"
    },
    {
     "id": "geo.chn.t500.society.history.asia.china.tang-late",
     "label": "Late Tang (820 to 907)",
     "api_url": "https://www.edgepedia.org/api/v1/geo/geo.chn.t500.society.history.asia.china.tang-late"
    },
    {
     "id": "geo.chn.t500.society.history.asia.china.tang-late.late-tang-institutions-works-and-religio",
     "label": "Late Tang institutions, works, and religion",
     "api_url": "https://www.edgepedia.org/api/v1/geo/geo.chn.t500.society.history.asia.china.tang-late.late-tang-institutions-works-and-religio"
    }
   ]
  }
 ],
 "excerpt": "Beili Zhi (北里志, Records of the Northern Ward) is a collection of anecdotes compiled by the Tang writer Sun Qi in 884, recording the courtesans of Pingkangli in Chang'an.",
 "snippet": "Beili Zhi (北里志, Records of the Northern Ward) is a collection of anecdotes compiled by the Tang writer Sun Qi in 884, recording the courtesans of Pingkangli in Chang'an.",
 "node": "society.history.asia.china.tang-late.late-tang-institutions-works-and-religio",
 "markdown": "# Beili Zhi\n\n*Beili Zhi* (北里志, \"Records of the Northern Ward\") is a short collection of anecdotal records compiled by the Tang-dynasty writer Sun Qi (孙棨), finished in 884 (中和甲辰岁).<sup>[1](https://zh.wikisource.org/wiki/%E5%8C%97%E9%87%8C%E5%BF%97)</sup><sup> • </sup><sup>[2](http://chinaknowledge.org/Literature/Novels/beilizhi.html)</sup> It records the courtesans of Pingkangli (平康里), the entertainment ward in the north of the capital [Chang'an](https://www.edgepedia.org/changan) (长安), and their dealings with the officials and examination candidates who frequented them.<sup>[2](http://chinaknowledge.org/Literature/Novels/beilizhi.html)</sup>\n\n| Key fact | Detail |\n|---|---|\n| Author | Sun Qi, courtesy name Wenwei (文威), late 9th century<sup>[2](http://chinaknowledge.org/Literature/Novels/beilizhi.html)</sup> |\n| Date of completion | 884, dated by its preface to the year 中和甲辰岁<sup>[1](https://zh.wikisource.org/wiki/%E5%8C%97%E9%87%8C%E5%BF%97)</sup><sup> • </sup><sup>[2](http://chinaknowledge.org/Literature/Novels/beilizhi.html)</sup> |\n| Subject | The courtesans of Pingkangli in Chang'an and their patrons<sup>[2](http://chinaknowledge.org/Literature/Novels/beilizhi.html)</sup> |\n| Notable content | The ward's three qu (三曲) and their ranking; the courtesans' registration under the entertainment bureau (教坊)<sup>[1](https://zh.wikisource.org/wiki/%E5%8C%97%E9%87%8C%E5%BF%97)</sup> |\n| Early modern transmission | Ming-period prints in the series 续百川学海 and 古今说海; modern edition of 1957<sup>[2](http://chinaknowledge.org/Literature/Novels/beilizhi.html)</sup> |\n\n## Origin: author and date\n\nThe compiler was Sun Qi, whose courtesy name was Wenwei (文威); he wrote in the late ninth century.<sup>[2](http://chinaknowledge.org/Literature/Novels/beilizhi.html)</sup> In his preface he says that he had long lived in the capital while following the fiscal officials (频随计吏，久寓京华) and had often visited the ward, and that he had always intended to write down what he saw, expecting that such extravagance could not last (物极则反).<sup>[1](https://zh.wikisource.org/wiki/%E5%8C%97%E9%87%8C%E5%BF%97)</sup> The rebellion that ended the era overtook him first: he records that he met the upheaval in which the imperial carriage left the capital and the \"whales and ogres\" fled to the mountains, and that the world he had known was swept away (前志扫地尽矣).<sup>[1](https://zh.wikisource.org/wiki/%E5%8C%97%E9%87%8C%E5%BF%97)</sup> Compiling from what he could still remember, he called the result \"leftover matters of a bygone peace\" (为太平遗事) and dated the preface 中和甲辰岁, signing it 无为子.<sup>[1](https://zh.wikisource.org/wiki/%E5%8C%97%E9%87%8C%E5%BF%97)</sup> The date corresponds to 884.<sup>[2](http://chinaknowledge.org/Literature/Novels/beilizhi.html)</sup>\n\n## Contents\n\nIts opening entry explains the geography and internal hierarchy of Pingkangli: entering the north gate and turning east, the courtesans lived in three qu (三曲), and the most accomplished (铮铮) lived in the south qu and middle qu, while the wall-side qu (循墙一曲) housed the low-ranking courtesans, who were looked down on by the other two.<sup>[1](https://zh.wikisource.org/wiki/%E5%8C%97%E9%87%8C%E5%BF%97)</sup>\n\nA second entry records the administrative machinery behind the trade. The drinking courtesans of the capital were registered under the entertainment bureau (籍属教坊); when court officials held banquets they had to obtain documents (行牒) through the relevant bureaus before they could summon courtesans elsewhere.<sup>[1](https://zh.wikisource.org/wiki/%E5%8C%97%E9%87%8C%E5%BF%97)</sup> The new examination graduates (新进士) were the exception: at their feasts they could issue the summons directly, and the payments they gave were double the usual rate.<sup>[1](https://zh.wikisource.org/wiki/%E5%8C%97%E9%87%8C%E5%BF%97)</sup>\n\n## Transmission\n\nThe text circulated in Ming-period prints preserved in the collectanea 续百川学海 and 古今说海.<sup>[2](http://chinaknowledge.org/Literature/Novels/beilizhi.html)</sup> In 1957 the Gudian Wenxue Press (古典文学出版社) issued a modern edition that printed the *Beili Zhi* together with two related works on entertainers and their institutions, the *Jiaofang ji* (教坊记) and the *Qinglou ji* (青楼集).<sup>[2](http://chinaknowledge.org/Literature/Novels/beilizhi.html)</sup>\n\n## Political influence\n\nThe evidence bears on the book's value for the history of Tang institutions rather than on any policy it changed. The passages on registration under the entertainment bureau and on the document system (行牒) that governed the summoning of courtesans preserve how one sector of the capital's entertainment trade was administered, and the privilege enjoyed by new examination graduates ties the ward to the examination system and its celebratory culture.<sup>[1](https://zh.wikisource.org/wiki/%E5%8C%97%E9%87%8C%E5%BF%97)</sup> As a record of these arrangements and of the social life of the capital's educated men, the work serves as a source for the social history of the Tang urban middle class.<sup>[2](http://chinaknowledge.org/Literature/Novels/beilizhi.html)</sup>\n\n## Assessment and legacy\n\nIts value lies in the detail it preserves: the ranking of the three qu, the fees and double fees paid at graduates' banquets, and the poems exchanged between courtesans and patrons.<sup>[1](https://zh.wikisource.org/wiki/%E5%8C%97%E9%87%8C%E5%BF%97)</sup><sup> • </sup><sup>[2](http://chinaknowledge.org/Literature/Novels/beilizhi.html)</sup> The work was grouped with the *Jiaofang ji* and *Qinglou ji* in the 1957 modern edition.<sup>[2](http://chinaknowledge.org/Literature/Novels/beilizhi.html)</sup>\n\n## References\n\n1. [北里志 - 维基文库，自由的图书馆](https://zh.wikisource.org/wiki/%E5%8C%97%E9%87%8C%E5%BF%97)\n2. [Beilizhi 北里志 (www.chinaknowledge.de)](http://chinaknowledge.org/Literature/Novels/beilizhi.html)\n\n---\n*Topic: Encyclopedia › Society and history › History and archaeology › Asian history › China › Late Tang (820 to 907) › Late Tang institutions, works, and religion*\n\n*Initially written Sep 25, 2026 · Edited: Oct 15, 2026*\n\n*Copyright 2026 EdgeChat AI, a subsidiary of Biostate AI.*\n\nLicense: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license\n",
 "same_as": [],
 "url": "https://www.edgepedia.org/beili-zhi",
 "markdown_url": "https://www.edgepedia.org/beili-zhi.md",
 "license": {
  "name": "Edgepedia Community License 1.0",
  "url": "https://www.edgepedia.org/edgepedia/license",
  "summary": "Free with credit, commercial use included. AI training is open to everyone. For other uses, organizations over USD 100M in revenue or 100M monthly users license separately.",
  "spdx": "LicenseRef-Edgepedia-Community-1.0"
 },
 "credit": "\"Beili Zhi\", Edgepedia (EdgeChat), https://www.edgepedia.org/beili-zhi. Edgepedia Community License 1.0.",
 "credit_md": "\"[Beili Zhi](https://www.edgepedia.org/beili-zhi)\", Edgepedia (EdgeChat), [https://www.edgepedia.org/beili-zhi](https://www.edgepedia.org/beili-zhi). [Edgepedia Community License 1.0](https://www.edgepedia.org/edgepedia/license).",
 "credit_html": "\"<a href=\"https://www.edgepedia.org/beili-zhi\">Beili Zhi</a>\", Edgepedia (EdgeChat), <a href=\"https://www.edgepedia.org/beili-zhi\">https://www.edgepedia.org/beili-zhi</a>. <a href=\"https://www.edgepedia.org/edgepedia/license\">Edgepedia Community License 1.0</a>.",
 "speakable": "Beili Zhi is a collection of anecdotes compiled by the Tang writer Sun Qi in 884, recording the courtesans of Pingkangli in Chang'an."
}
