A Question With Two Answers
Ask where tofu came from and you will usually get one of two answers. The first is a story: a Han-dynasty prince, Liu An of Huainan, invented it while seeking an elixir with a group of alchemists in the Bagong hills. The second is a date: the earliest surviving written mention of tofu belongs to the Five Dynasties period, many centuries after Liu An. Both answers are repeated constantly, and they are often treated as if they were the same kind of claim. They are not. One is a tradition told about a person; the other is a sentence in a book that survives.
This page keeps them apart. It asks who is said to have invented tofu, what the earliest record actually says, how the practice reached the countries now associated with it, and what a modern heritage entry does and does not certify. It does not give a recipe, a set of proportions, or advice about eating tofu — those are different questions, handled elsewhere.
The Prince and the Alchemists
The best-known account places Liu An, prince of Huainan, in the hills near Shouxian in what is now Anhui province. He had gathered a circle of scholars and alchemists — later remembered as the Eight Gentlemen of Bagong — and the story says that a coagulant used in their experiments met a batch of soy milk and produced curd. A local variant has eight old men instructing him to eat ground soybeans for long life. Both are stories about a discovery made by accident in the search for something else.
The textual basis is much later than the event it describes. Li Shizhen wrote in the Ming-dynasty Compendium of Materia Medica that "the method of tofu began with Prince Liu An of Huainan". A Ming author was writing more than a millennium after the Han prince, and a statement of that distance is a tradition, not contemporary evidence. A Yuan-dynasty work, Wu Rui's Daily Materia Medica, repeats the same attribution, and a Five Dynasties note by Xie Chuo says the technique was not heard of before the three dynasties and began to be transmitted from Prince Liu An of Huainan. Each is a later source pointing backwards to the same name. None is a Han record of the making itself.
That does not make the story worthless. It explains why a locality takes pride in a craft and why Liu An's name is attached to it in poetry and local memory. The Song poet Zhu Xi wrote that had he known the "Huainan art" he would have made a living from it, and a Ming poem on Bagongshan tofu opens with the line that the Huainan method was the finest. These are evidence of a living tradition of attribution, not of a Han invention. Whether Liu An actually made the first tofu is left open here, just as the dumplings study leaves the Zhang Zhongjing story open rather than converting a legend into a fact.
The First Written Record
The earliest surviving written mention is narrower than the legend. Tao Gu's Qing Yi Lu, compiled in the Five Dynasties period, records an official named Shi Ji serving as magistrate of Qingyang. He kept himself honest and frugal, went without meat, and bought several pieces of tofu each day. The townspeople called tofu xiao zai yang — "a little slaughtered lamb". That is a small, practical sentence: by that period tofu was cheap enough for a poor official, available in a market, familiar enough to have a nickname, and regarded as a stand-in for meat.
What it establishes is existence by the Five Dynasties period, not the moment of invention. A first written record is the earliest thing we can point to in the surviving evidence; it is not the same as a first occurrence. The scholarly tendency is to place the emergence of tofu somewhere between the mid-Tang period and the Five Dynasties — earlier than Tao Gu's sentence, but far later than the Han. The exact point remains unsettled. Keeping that distinction is the whole method of this collection: say what the sources support, mark what they do not, and resist turning a popular explanation into a documented origin.
China or Japan?
A question that recurs in search is whether tofu is from China or Japan. The two are not rival inventions. The written record described above is Chinese and predates the extensive Japanese use of tofu, and a tradition recorded in Huainan says the method travelled east when the monk Jianzhen crossed to Japan in the Tang period. Korea is likewise linked to a later transmission from China. What the evidence supports is a Chinese origin for the written tradition and a later spread into neighbouring food cultures, where tofu developed its own forms and uses.
The confusion is understandable. In English-language sources tofu is often presented through Japanese terms and Japanese preparations, which can make the Japanese version look like the original. The point here is narrower and more useful: the sources place the first written record in China, and the craft was inscribed on a Chinese national heritage list in 2014 under the name tofu traditional making techniques. That is a documented status, not a claim that every later tofu culture is derivative of it.
The Craft and the List
In 2014 the State Council inscribed tofu traditional making techniques on the fourth batch of the national intangible cultural heritage list under number Ⅷ-232, naming Huainan and Shouxian in Anhui as the declaring regions; an extension for Tai'an in Shandong followed in 2021. The entry recognises a transmitted practice: how beans are selected and soaked, ground and strained, cooked and set with a coagulant, and pressed into shape. The named stages and tools — stone mills, fine cloth strainers, earthen stoves, pressing frames — carry local knowledge about timing and touch that is learned from another maker rather than read from a formula.
Choose the angle carefully. The inscription does not say that tofu as a food is heritage, that Liu An's story is true, or that any one town makes the definitive version. It names a practice and the people who carry it. A representative inheritor of the entry, Yang Shuntian, entered the Bagongshan bean-products factory in 1972 and learned the traditional setting method from older hands — a chain of workshop teaching that is the ordinary way a craft of this kind survives. The related craft of traditional tea processing is another example of the same principle: knowledge held in a chain of makers, not in a written specification.
Why the Distinction Matters
Calling a legend a legend is not an attack on it. It protects the parts of the record that are real. The Five Dynasties sentence about a frugal official and his "little slaughtered lamb" tells us something concrete about tofu as an everyday food. The national entry tells us something concrete about how a making tradition is kept alive now. The Liu An story tells us how a place remembers its own craft. Each is valuable at the weight it can bear, and muddling them does damage to the evidence.
This is also why the page stops where it does. It does not rank tofu-producing places, does not say which texture is correct, and does not turn an origin debate into a contest between countries. For the practices that can be documented — the first record, the transmission of the craft, the terms of the heritage entry — the evidence is clear enough to state, and that is the point of the exercise.