The phrase 城下之盟 (cheng xia zhi meng) means a treaty signed at the foot of your own city wall. Enemy troops are outside the gate. The terms are read to you. You agree.
In English we might say a dictated peace, or terms signed at gunpoint. The Chinese image is more exact. The table is not in the palace. It is in the ditch under the wall, and the other army is camped close enough that you can hear its animals.
Not one of those four characters is an insult. Together they are one of the heaviest insults in the Spring and Autumn period.
A covenant was supposed to be a meeting of equals. Two rulers on a platform, a sacrifice, blood smeared on the lips, an oath read aloud, each side keeping a copy.
A treaty at the bottom of the wall was not that. You still signed. But afterwards you had to open your gate and watch the other man leave.
The source is the Zuo Tradition, the twelfth year of Duke Huan of Lu, which is 700 BC. The man at the centre of it is Qu Xia, a Chu commander.

First, who he was.
Mo Ao was a Chu title, a high military office usually held by a member of the ruling clan. Qu Xia came from the Qu family and served two Chu kings. He was not a nobody.
In that year Chu attacked the small state of Jiao.
Jiao sat in the hills of what is now north-west Hubei, squeezed between Chu, Deng and Luo. Low walls. Few soldiers. The Chu army arrived at the south gate and made camp.
They could have stormed it. Storming costs men, and men are hard to explain at home.
Qu Xia had an idea.
The Zuo Tradition gives it in eight characters: Jiao is small and flighty, flighty means poor planning; withdraw the guards from the woodcutters and use them as bait.
Consider what that means. An army of tens of thousands burns wood every day. The woodcutters must leave camp, and to leave camp they must go up into the hills, and in the hills they are alone.
Qu Xia sent out a group of men with no weapons. He hung meat on a hook.
Jiao took it. Thirty men on the first day.
Thirty is not many. But those thirty were alive, they could shout, and they could be shown off. Jiao decided it had won something.
On the second day the men of Jiao competed to get out of the gate and chase the Chu woodcutters into the hills.
The Zuo Tradition needs a line and a half. The Chu men sat at the north gate, and the rest were waiting at the foot of the hill, and Jiao was badly beaten.
Sat at the north gate means the main body quietly blocked the only way home. Waiting at the foot of the hill means a second force was hidden below the trees.
The men who had gone out could not get back. The gate was closed to them and the hillside was closed behind them.
What Jiao lost that day was not thirty men. It was every man it had who could hold a weapon.
Then five characters, and they are the whole point of this story. He made a treaty at the bottom of the wall and went home.
Chu did not enter the city. They signed with the ruler of Jiao in the ditch below his own wall, and then they left.
Why not enter? Because entering means destroying a state, and in the Spring and Autumn period destroying a state required an excuse and invited the attention of every other lord. Chu did not want Jiao land. Chu wanted Jiao obedient.
But the ceremony itself was a sentence.
The platform stood outside, not inside. The ruler of Jiao had to walk out of his own gate, into the Chu camp, and swear with Chu officers watching. The terms were read by Chu. He listened.
And then the army left. He stood at his gate and watched the columns go, and the carts were carrying what had been in his storehouses.
That is what the phrase means. It is a covenant, but what it records is not reconciliation. It records whose hand was holding whose.
Qu Xia came home covered in glory.
The Zuo Tradition does not describe the rewards. It uses one character: niu. Accustomed. Spoiled by success.
The year before, at Pusao, he had won a real battle. Four states had come against Chu, his adviser Dou Lian told him that an army wins on cohesion, not on numbers, and Qu Xia took the advice and broke the allied camp in a night attack. That year he proved himself.
This year he added a second thing: a state brought down cheaply.
A man who wins twice in a row starts walking differently.
The next spring Chu sent him against Luo.
Luo was smaller still, down in the south, weaker than Jiao.
The chief minister, Dou Bobi, went out to see the army off. On the way back he said to his charioteer: Mo Ao will be beaten. His feet come too high off the ground. His heart is no longer settled.
Dou Bobi went to the king and asked for reinforcements.
The king refused. Luo was tiny. Why add troops?
Back in the palace the king mentioned it to his wife, Deng Man. She said a long thing, and the centre of it was this: Dou Bobi was not talking about numbers. He was telling the king to steady Mo Ao with the weight of the law. The man is drunk on Pusao. He will trust his own judgement, he will underestimate Luo, and he will not post a guard.
The king understood, and sent riders after the army. They did not catch it. It was already gone.
Qu Xia was afraid of advice. He issued an order along the column: anyone who remonstrates will be punished.
So nobody remonstrated.
They reached the Yan River.
Crossing, the formation came apart. Four characters: the ranks broke and they crossed any way they could.
On the far bank they did not re-form, and they did not put out scouts. The Zuo Tradition is explicit: no order, and no precautions.
An army of tens of thousands, moving through a country that was not its own, strung out along a road, with nobody watching the hills.
Luo had been waiting for exactly this. They had brought in the Rong of Lu, another southern people. Two forces, one from each side.
Four characters again: they destroyed him.
The Chu army came apart from the commander down to the cooks.
Qu Xia ran to a valley called Huanggu and hanged himself from a tree. The surviving officers shut themselves inside a walled place called Yefu and waited to be tried.
The king arrived and said one sentence: this was my fault.
He pardoned all of them.
Three things are stacked in this story.
The first is the trick. Qu Xia beat Jiao because he understood what a weak state wants most. It wants to be able to say that it won. So he handed Jiao thirty woodcutters and let it win. A man who thinks he is winning walks out of his own gate.
The second is his death. Luo did not kill him. Three words killed him: his feet came too high. Dou Bobi read him correctly. Deng Man explained him exactly. Both of them together could not outweigh one order that said advice would be punished.
The third is what happened to the phrase.
Those four characters appear once more in the Zuo Tradition, in the fifteenth year of Duke Xuan.
That year Chu besieged the state of Song for nine months. Inside the walls people were swapping children to eat and splitting bones for firewood.
Song sent Hua Yuan into the Chu camp at night. He climbed onto the bed of the Chu general and put it plainly. Our state has come to this. But a treaty at the bottom of the wall, even if the whole state dies, we will not accept.
The general was shaken. The Chu army pulled back thirty li and the two sides made peace.
So: the same situation, an army outside the gate. Jiao signed. Song refused and lived. Nobody remembers what was in the document Jiao signed. The sentence Song refused with went into the histories and became the standard phrase for a humiliation.
In that same year, over on the Lu side, there is a smaller account that belongs here.
Duke Huan of Lu spent the year trying to make peace with Song. Three meetings, one covenant, and Song broke it anyway. Lu fought a battle over it. The historian puts a comment in the mouth of a gentleman:
If good faith does not follow, a covenant is of no use.
That line sits a few dozen columns away from the treaty at the bottom of the wall, and says the same thing. A sheet of sworn writing does not hold people. What holds them is the men outside the wall.
The wall of Jiao is still somewhere under a field. Nobody knows which tree Qu Xia used.
That is how a Chinese idiom usually works. It begins as a description of one bad afternoon in 700 BC, and then it stops being a description. A Chinese fable explains a mistake. A Chinese proverb names a whole category of misery and assumes you have felt it.
Anyone who has signed something they did not want to sign, with the other side standing in the doorway, already knows what these four characters mean. They do not need the battle. They only need the wall.