King Wen and the 64 Hexagrams
Some books are born in the comfort of libraries. The I Ching was born in a prison cell. Around 1140 BCE, a man imprisoned by a tyrant — stripped of his freedom, threatened with death — took the eight trigrams invented by Fuxi two thousand years earlier and combined them to create 64 hexagrams. That man was King Wen, and his work would traverse the millennia to become the heart of the Book of Changes.
It is one of the finest ironies of human history: a text that teaches inner freedom and wisdom in the face of life's transformations was written by a prisoner. As if the captivity of the body had been the condition for the liberation of the mind.
The tyrant Shou Sin: cruelty at the summit of power
To understand King Wen, one must first understand the era that forged him. We are in the twelfth century BCE, under the Shang dynasty (also called Yin). This dynasty, which had ruled over China for more than five centuries, was in full decline. On the throne sat Shou Sin (also known as Di Xin or Zhou Wang) — the last sovereign of the line, and one of the most infamously cruel tyrants in Chinese history.
The cruelty of Shou Sin was legendary, even for an era that was no stranger to harshness. The chronicles report that he condemned innocents to walk on red-hot metal bars suspended over a brazier. The unfortunate victims slipped and fell into the flames, while the tyrant and his favorite concubine, Daji, watched the spectacle laughing.
Shou Sin organized "forests of meat" and "ponds of wine" — extravagant orgies that drained the empire's coffers while the people suffered. He had a bronze column made, the paolao, coated with oil and heated by fire: those who displeased him were forced to embrace it. Anyone who dared protest was executed.
It was in this climate of terror that a prince from the west, known for his virtue and wisdom, caught the tyrant's attention.
Wen: The virtuous prince of the West
The future King Wen — his personal name was Ji Chang — governed the small state of Zhou in the west of the Shang empire. He was a skilled administrator, a just man, and above all a deep thinker, nourished by the tradition of the ancient sages and by the study of Fuxi's trigrams.
His reputation for wisdom and benevolence extended far beyond his borders. Neighboring peoples came to him for counsel. Those discontented with Shou Sin's tyranny saw in him a potential leader, a recourse, a hope.
It was precisely this growing popularity that alarmed Shou Sin. A vassal too well-loved is a dangerous vassal.
The omens: when the mountain collapses
Chinese tradition places great importance on omens — those signs through which Heaven manifests its judgment on human affairs. And at this time, omens were multiplying, all heralding the end of the Shang dynasty.
The most spectacular was the collapse of Mount Yao — a sacred mountain that suddenly crumbled, as if the earth itself were withdrawing its support from the tyrant. Shortly afterward, another marvel was reported: a woman was said to have transformed into a man, reversing the natural order of things.
For the Chinese of antiquity, these signs were unambiguous: the Mandate of Heaven (Tian Ming) — the divine legitimacy that founds royal power — was leaving the Shang dynasty. The empire was about to change hands.
"When thunder sounds in the midst of the lake, the image of resolution. Thus the superior man distributes his riches below and fears to rest on his virtue."
— I Ching, Hexagram 43, Guai (Breakthrough)
Seven years in the prison of Yuli
Shou Sin, informed of Wen's growing popularity and perhaps alerted by jealous advisors, decided to neutralize this overly brilliant vassal. Around 1144 BCE, he had the prince of Zhou arrested and imprisoned in the fortress of Yuli (in present-day Henan province).
Wen's captivity lasted seven years. Seven years of confinement, far from his family, far from his people, under the constant threat of an execution that the tyrant's whim could order at any moment.
Many men would have sunk into despair. Others would have plotted an escape. Wen chose a radically different path: he decided to work.
He had with him — in his memory, since it is doubtful he had access to documents — the eight trigrams of Fuxi. Those three-line figures representing the eight fundamental forces of the universe: Heaven, Earth, Thunder, Mountain, Water, Fire, Wind, and Lake.
In his cell, King Wen had the brilliant insight that would give birth to the I Ching: what if one superimposed two trigrams one upon the other? What if every situation in the universe resulted from the meeting of two fundamental forces — one below (the inner world, the Earth) and one above (the outer world, Heaven)?
The birth of the 64 hexagrams
Eight trigrams combined in pairs yield 8 x 8 = 64 hexagrams. Each hexagram is a figure of six lines — six yang or yin lines stacked on top of one another.
But King Wen did not merely create a combinatorial catalogue. For each of the 64 hexagrams, he wrote a judgment (guaci) — a brief, dense commentary describing the situation represented by the hexagram and offering fundamental counsel.
Let us consider a few examples of these judgments, which bear the mark of a man who knew suffering and patience intimately:
- Hexagram 5, Xu (Waiting): "Waiting. If you are sincere, you have light and success. Perseverance brings good fortune. It is advantageous to cross the great waters." — The counsel of a prisoner who knows that active patience is a supreme virtue.
- Hexagram 36, Ming Yi (Darkening of the Light): "The darkening of the light. In adversity, it is advantageous to persevere." — Wen's very own situation, a sage imprisoned by a tyrant, light buried in darkness.
- Hexagram 47, Kun (Oppression): "Oppression. Success. Perseverance. The great man brings about good fortune. No blame. When one has something to say, one is not believed." — The direct experience of a man whose wisdom is silenced by prison walls.
Day after day, month after month, year after year, King Wen patiently built his work. He arranged the 64 hexagrams in a precise order — an order that is not random but follows a logic of progression and opposition. This order, called the "King Wen sequence," is still used today in all editions of the I Ching.
"The I Ching is a book from which one must not remain distant. Its way is in perpetual mutation — transformation, ceaseless movement, flowing through the six empty places, rising and descending without fixed law."
— I Ching, Great Appendix
The liberation: a serene man in the midst of chaos
While King Wen wrote in the silence of his prison, the outside world did not stand still. His son, the future King Wu, worked tirelessly to build a coalition against the tyrant. He gathered allies, trained troops, prepared the war of liberation.
After seven years of captivity, the gates of the Yuli prison finally opened. According to some versions, it was diplomacy and gifts offered by Wen's loyalists that persuaded Shou Sin to release him. According to others, it was the soldiers of the revolt who broke them down.
Whatever the version, the scene that greeted the liberators has remained etched in Chinese collective memory: in his cell, they found a serene man, in full possession of his faculties, surrounded by his writings. Wen had not been broken by captivity. He had transmuted it — transforming seven years of suffering into a work of universal wisdom.
It is King Wen himself who, through this inner transformation, embodies the central message of his book: situations are never fixed. Even the darkest prison contains the seeds of liberation. Even the greatest adversity can be the soil for an extraordinary creation.
The Duke of Zhou: commentaries on the six lines
King Wen died shortly after his liberation, before he could overthrow the Shang dynasty. It was his son, King Wu, who completed the military conquest. But the intellectual work was completed by another family member: Tan, Wen's brother, better known by the title of Duke of Zhou (Zhou Gong).
The Duke of Zhou made a decisive contribution to the I Ching. For each of the 64 hexagrams, he wrote individual commentaries for each of the six lines (yaoci). Where King Wen's judgment gives the general meaning of the hexagram, the Duke of Zhou's commentaries specify the meaning of each position, each line — what it signifies at the first rank, the second, the third, and so on.
The result is a work of 64 pages (figuratively speaking), each comprising:
- The drawing of the hexagram — six yang or yin lines
- King Wen's judgment — the overall meaning of the situation
- Six line commentaries by the Duke of Zhou — one per line, from bottom to top
This is essentially the consultation method still used today. When you cast a hexagram, you first read the judgment (the overview), then the commentaries on the moving lines (the specific details of your situation). Coins have replaced yarrow stalks, but the structure of the text has remained the same for over three thousand years.
A living legacy
King Wen did not merely create a book. He created a language — a symbolic system capable of describing, with 64 figures and a few hundred words, the full range of situations a human being can encounter. Love and loss, power and submission, conflict and reconciliation, waiting and action, birth and death — everything is there, condensed in the density of a text that refuses to be verbose.
Six centuries later, Confucius would add a third layer to the text with his "Ten Wings" — philosophical commentaries that elevated the I Ching from the status of oracle to that of a foundation of Chinese thought. But without King Wen and his creative captivity, without the Duke of Zhou and his patience as a commentator, Confucius would have had nothing to comment on.
The story of King Wen teaches us something fundamental about human nature: the greatest works are not necessarily born in freedom and comfort. Sometimes it is in absolute constraint that the mind finds its highest expression. The prisoner of Yuli proved it three thousand years ago. The I Ching bears living testimony to it.
Cast your hexagram
Free unlimited Zen Mode. Discover King Wen's 64 hexagrams interpreted by MING AI.
App