Ding Wei: Chancellor, Exile, and China's Incense Classic
Ding Wei, a Northern Song grand councilor convicted of colluding with eunuchs, was exiled to Yazhou on Hainan in 1022. There he wrote Tian Xiang Chuan, the first systematic Chinese study of agarwood, dividing Hainan incense into four names and twelve forms. The book survives through the Ming compendium Xiang Cheng.

On this page
In the fourth month of 1037, on the island of Hainan, a disgraced chancellor of the Northern Song bathed, changed his clothes, lay down in his Buddhist hall, and died. He was Ding Wei, seventy-two years old, and he had spent his last years in Yazhou, one of the most distant places the Song dynasty used for banished officials. There, cut off from the court he had once run, he wrote Tian Xiang Chuan, or A Treatise on Incense, the first systematic Chinese study of agarwood. The official histories remember him as a treacherous minister. The little book he finished in exile has been read for nearly a thousand years.
The official who fell, and the island he was sent to
Ding Wei was born in 966, the fourth year of the Qiande reign, in Changzhou in Suzhou. His courtesy name was first Weizhi, later Gongyan.
He passed the jinshi examination in 992 and was appointed an evaluator in the Court of Judicial Review and co-administrator of Raozhou. From there he climbed steadily: military affairs commissioner, then grand councilor, with the title Duke of Jin. After Emperor Renzong came to the throne he was convicted of colluding with palace eunuchs, demoted to a minor post in Yazhou, and retired through the office of supervisor in the Palace Library.
By every account he was a man of wide talents. He was a good talker, wrote poetry, and excelled at books, chess, and music. He took part in the poetry exchanges of the Xikun school, though his own style was softer and never fully identified with it. His written output was large: the 150-juan Detailed Atlas of the Feng and Shan Sacrifices at Mount Tai, the six-juan Jingde Accounting Records, the three-juan Beiyuan Tea Record, the fifty-juan Huqiu Collection, and more, some twenty works in all. Almost everything is lost. What survives is one juan of his Talks and one juan of A Treatise on Incense.
The histories judge him harshly: clever and quick to read what others wanted, and complicit, along with Wang Qinruo, in Emperor Zhenzong’s costly campaigns of palace building and auspicious-omen propaganda. One verdict runs that neither the man nor his deeds deserve praise, and that only his poetry and prose earned him a later reputation.
How to judge a piece of agarwood: four names, twelve forms
Whatever the verdict on the man, the book he left is a working manual, and its method is concrete. The heart of A Treatise on Incense is a piece of practical craft: how to sort, grade, and appraise agarwood. Ding Wei was the first writer to make Hainan incense, or ya xiang, the basis of study, dividing Hainan agarwood into “four names and twelve forms.” The names grade the material into four ranks: shuixiang, which sinks in water; zhanxiang; huangshu; and shengjie. The forms are twelve shapes distinguished by appearance. For appraisal he set three criteria, a high-rising smoke, a round fullness to the nose, and a lasting fragrance, and by them judged Hainan agarwood the finest. A small book written in exile established the basic framework for judging agarwood in China, and later schemes, including how qinan came to be graded, grew out of the ground he cleared.
The single juan opens with history rather than technique. Drawing on Confucian ritual, Daoist classics, and Buddhist texts, it traces the use of incense and the origins of its materials, noting that agarwood has been used since antiquity, first in sacrifices to heaven and earth, burned in prayer. In Ding Wei’s telling, incense runs through ritual and religion alike, not trade alone.
Yet trade fills a good part of the book. Champa, the old kingdom in central and southern Vietnam, had been absorbed into the Han empire as Linyi, and its people lived by gathering incense. The Arabs traded by sea and prized aromatic drugs above nearly all else, agarwood especially, and priced it dearly. Ding Wei wrote that “the Arabs value zhichen agarwood, and the incense is priced the same as gold.” A material commanding what agarwood cost pulled the whole of overseas trade after it. The Ming compendium Xiang Cheng preserves lost passages of the treatise, including lines on “the sun’s seal-script of smoke dissolving, fragrance filling clouded windows and moonlit doors, the stove warming scented water, watching the embroidered quilt perfumed.” The place of incense in daily Song domestic life is visible in these few words.

Why the book could only have come from this man
The method explains what the book contains, but not how one man could write it. The treatise rested on two kinds of knowledge that rarely met in one person. The first was already in place before his exile: Ding Wei had long served within the palace, knew the rules governing its use of incense, and had received fragrant drugs as imperial gifts, so he had handled far more top-grade materials than any ordinary scholar could. The second came with the banishment itself. The authors of earlier incense manuals mostly knew these materials by name and reputation only; Ding Wei arrived at the source. Writing amid hardship, he observed that the pleasure of the incense burner made him all the more diligent, and the harder his exile became, the harder he studied. He went to the markets himself. He had long heard that Hainan produced incense in quantity, and he had agents buy specimens from the local traders to examine: of ten pieces, not one was fake. The purity of the local supply, and the trained eye he brought to it, are both on record.
Palace insider’s knowledge plus firsthand experience in the land that produced the material: either alone, and the book might never have been written.
The administrator behind the nose
The market instinct that sent Ding Wei among the incense traders was the same sharpness he showed everywhere else. He had real administrative ability, and the record shows it. In 1004, when the Khitan invaded southward, he was sent to govern Yunzhou. As enemy riders drew near, terrified crowds surged toward the Yellow River ferry crossings, and boatmen raised their prices until no one could cross. Ding Wei ordered condemned prisoners beheaded at the riverbank, and the frightened boatmen stopped extorting travelers, letting the crowds get across. He then had banners planted all along the river and soldiers beaten at the watch-drums, the noise carrying over a hundred li. The Khitan cavalry, believing Song forces to be numerous, withdrew.
He showed the same sharpness in economic matters. Troops were garrisoned across the Sichuan gorge prefectures, grain shipments for them troubled the people, and salt sat stockpiled locally. He proposed recruiting southerners to deliver grain to the border in exchange for salt, then trading the salt for silk and cloth once stores were sufficient. The grain, the salt, and the silk all came into balance.
His quick wit was famous at banquets. At one gathering at the Taiqing Pavilion, Emperor Zhenzong asked the assembled officials the price of wine in the Tang dynasty. No one could answer except Ding Wei, who replied: thirty cash per sheng. Asked how he knew, he cited Du Fu’s line, “Come quickly and drink a dou with me, for I have just three hundred bronze coins.” A dou at three hundred cash meant thirty cash to the sheng. At another banquet, held for flower viewing and fishing, he presented the couplet “The oriole, startled by the phoenix carriage, threads through the blossoms; the fish, in awe of the dragon countenance, rises slowly to the hook.” The emperor recited it over and over in admiration, and the other officials conceded they could not match it.
The best proof of his ability came with the palace reconstruction during the Dazhong Xiangfu era. Fire had destroyed parts of the imperial palace, and Ding Wei was put in charge of rebuilding. The nearest source of earth was too far away, so he had the surface of the great avenue outside the palace dug up and used instead, leaving a long trench. He then channeled the Bian River into the trench, and bamboo rafts, wooden rafts, and boats carried timber and materials straight to the work site. When the palace was finished, the rubble and waste earth went back into the trench and the avenue was restored. Digging, transport, and disposal, three problems solved in one operation, saved sums in the hundreds of millions of cash.
Talent without virtue
Ability of this kind sat alongside a character the histories state plainly: talent without virtue. In the seventh month of 1020, Ding Wei became grand councilor, with the additional posts of Director of the Zhaowen Institute and supervising editor of the dynastic history. Once, Chancellor Kou Zhun spilled soup on his beard, and Ding Wei, then vice councilor, rose at once to wipe it for him. Kou Zhun joked that a vice councilor is a minister of state, and yet he wipes his superior’s beard. It was a light remark. Ding Wei never forgave it. Once he was chancellor himself, he pushed Kou Zhun out and dismissed from court everyone friendly to him. When Kou Zhun was to be exiled, Zhenzong intended a placement between the Yangtze and the Huai, but Ding Wei forged the edict and sent him to Daozhou as Sima, and not one courtier dared speak against it. He ordered Song Shou of the Drafting Office to compose the edict of exile; when Song Shou asked the reason, Ding Wei answered that the Spring and Autumn Annals condemns regicide and the Han codes condemn treason, and that these charges applied. Song Shou complied but altered the original wording rather than using it in full.

The fall came fast. In the second month of 1022, Emperor Zhenzong died and Renzong succeeded, with Ding Wei serving as commissioner for the imperial mausoleum. His ally, the palace attendant Lei Yungong, moved the mausoleum site on his own authority and was executed in the sixth month. Wang Zeng, the vice councilor, had long wanted to use the mausoleum affair to bring Ding Wei down, and he found his opening in an unrelated family matter concerning adopting a nephew as heir. He petitioned on it, and Ding Wei, suspecting nothing, let him have a private audience with the Empress Dowager. Wang Zeng accused Ding Wei of harboring treasonous intent; the dowager was alarmed, and Ding Wei was removed from the chancellorship on the charge of colluding with eunuchs. The purge followed: one son was stripped of office, another barred from office at his side; all three younger brothers were demoted; his faction, Lin Te, Zu Shiheng, Zhang Pin, Su Weifu, Huang Zongdan, and the rest, lost their posts one after another, and even his son-in-law Pan Rushi fell. Ding Wei himself was exiled to Yazhou as Registrar of Households.
For years afterward, every hope of recall was crushed. When the general amnesty was proclaimed at the southern suburb sacrifice in 1027, everyone assumed Ding Wei would return. The investigating censor Chen Yan submitted a memorial listing his crimes and citing precedent: Li Deyu had perished abroad for factional strife alone, and Lu Duoxun, for serving a prince too eagerly, had never been restored. Chen Yan asked that Ding Wei be excluded from the amnesty, and the court agreed. Censor Liu Sui put it more bluntly: Ding Wei had moved the imperial burial ground to the harm of sovereign and ancestors, and the only fitting measure was to take his head and set it before the ancestral temples. Not until 1032 was he allowed to retire as supervisor of the Palace Library.
There is a curious postscript. Early in his career, while serving in Raozhou, Ding Wei told Yang Yi that he had met the immortal Lü Dongbin, who said his features resembled Li Deyu’s and that his fate would follow the same course. Yang Yi recorded this at the moment Ding Wei had just become chancellor and was at the height of his confidence. What Yang Yi could not have known was that Ding Wei would indeed be exiled to the same place Li Deyu had been exiled to: Yazhou. The prophecy came true to the letter.
What one juan left behind
The prophecy closed one story; the book opened another, and it outlasted Ding Wei’s official reputation by centuries. The Hainan-centered framework and the four-names-twelve-forms scheme were borrowed by later writers, and through the successive dynasties, those who wrote on incense treated Hainan agarwood as the standard. Within the incense register tradition that grew up after him, his juan is the founding entry. The original text was lost for a time and survives only because the Ming compendium Xiang Cheng preserved its scattered passages. Discussions of Chinese agarwood appraisal still begin there.
Ding Wei’s own end answered a parting remark he once made to the monk Miaohai, who had moved in and out of his household. When Ding Wei was relocated to Guangzhou, Miaohai came to see him, and at parting Ding Wei told him: I shall not die; within five years I shall have my old position back. Five years later, the Tangut leader Yuanhao rebelled, the frontier crisis began, and the court chose other ministers. Ding Wei did not go back. In the fourth month of 1037, aged seventy-two, he died as the record describes: clean-clothed, lying in his Buddhist hall. The court granted ten strings of cash and a hundred bolts of silk. On hearing the news, Wang Zeng said to others: this man’s cunning could not be fathomed; even across the sea he could use deception to seek his return, and had he not died he might well have been recalled within a few years, and if that had happened, the misfortunes for the realm would be beyond telling. I do not rejoice at his death.
The contradiction resolves into plain terms. The Song had no shortage of literati who wrote about incense. What it lacked was someone with an insider’s knowledge of the palace, the accident of exile to the incense lands, and the willingness to go to the market and examine piece after piece himself. Ding Wei’s political talent was undone by his instinct for reading other men’s wishes. But the nose that judged agarwood and the pen that described it left the study of incense a founding text, one juan long, still where every appraisal starts.
