The Chinese idiom 转祸为福 (zhuan huo wei fu) means to turn a disaster into a blessing. It does not mean that luck will change on its own. It means that a man takes the wreckage he has been handed and finds in it the one part that can still be used.
The story behind it comes from the Intrigues of the Warring States. Qi had taken ten cities from Yan while Yan was in mourning. Yan sent one man to see the king of Qi. He walked into the hall, offered congratulations, and then, still standing, began to wail for the dead.
The king of Qi stepped back and put his hand on his halberd.

The ten cities came first.
In 333 BC Duke Wen of Yan died, and his son came to the throne as King Yi.
Yan had recently married into the strongest house in the world. King Hui of Qin had given his daughter to the Yan heir, which is to say to this new king. The marriage was insurance. In a century of shifting alliances, a Qin bride in the women’s quarters of the Yan palace meant that Qin had a reason to care what happened to Yan.
Qi looked at the funeral and saw an opening.
A ruler dead, an heir not yet steady on the seat, the mourning rites unfinished, the army not called up. King Xuan of Qi marched, and took ten cities.
Yan could not fight Qi. Both states knew it.
So Yan sent for a man.
Su Qin.
Su Qin had been a failure for years. His first attempt at a career took him to Qin, where he argued for an alliance with the western state, and he submitted ten memorials to the king of Qin without a single reply. His money ran out, his black sable coat wore through, and he walked home carrying his own book box, his legs bound up in cloth against the cold. When he reached his house his wife went on working at the loom and did not come down. His sister-in-law did not cook for him.
He then read himself half blind, changed his argument, and went out again to preach the vertical alliance, the coalition of the six eastern states against Qin. In the end he carried the seals of six states at once.
A man like that does not win wars. He wins rooms.
He arrived in Qi and was received by King Xuan.
He bowed, and bowed again, and congratulated the king.
Then he lifted his head and wailed.
Wailing is a rite for the dead. It is what you do at a funeral, in front of the coffin, with the family. In the audience hall of a reigning king, it is not a rhetorical device; it is an insult with a body attached.
King Xuan had a halberd in his hand. He stepped back and asked: what is this? Congratulations and mourning, one after the other, that fast?
Su Qin said: may I ask a question? Why is it that a starving man does not eat the aconite root?
Aconite is poison. It kills by paralysing the heart, and it does so within hours.
The king did not answer.
Su Qin said: because it fills the belly for an hour, and then it kills you, and a man who dies full is no better off than a man who dies empty.
You have taken ten cities from Yan. Yan is weak, but its king is the son-in-law of Qin. Those ten cities mean that you have made a permanent enemy of the strongest state in the world. You have put weak Yan out in front like a line of geese, and put Qin behind it, and invited every army in the world to come and see what is on offer. That is the aconite root.
The hall was quiet.
The king asked: then what should I do?
Su Qin gave him eight characters.
A sage, he said, when he manages affairs, turns disaster into blessing and turns defeat into achievement.
He did not lecture. He gave two examples from the past, both of them familiar to everyone in the room.
The first was Duke Huan of Qi. Duke Huan was famous for his appetites, and his household was full of women, and yet his reputation rose rather than fell. Why? Because the great thing was done. He held the Zhou king up, he pushed back the border peoples, he convened the lords nine times. A man may have a hundred faults; if the one large thing is accomplished, the faults cannot hold the name down.
The second was Han Jue. When Han Jue was marshal of the army, a chariot belonging to the chief minister Zhao Dun drove out of turn and broke into the marching column. Han Jue arrested the driver and had him executed. Zhao Dun, instead of raging, said: now I can be congratulated. The man he had recommended would not spare even his own patron’s carriage. That execution made the bond between the two men harder, not weaker.
Now, Su Qin said, it is the same for you.
Give the ten cities back.
Yan gets ten cities for nothing, and is delighted. Qin learns that Qi returned them because of Qin, and is delighted too. This is what the age called casting away an enemy and gaining a friendship of stone — not the ornamental sort of friendship, but the kind that does not break when it is struck.
With Yan and Qin both friendly to Qi, who in the world will refuse your summons? You spend one empty sentence to hold Qin, and ten cities to buy the world. That is the work of a hegemon.
King Xuan said: good.
The ten cities went back.
In the Intrigues, the whole episode takes a few hundred characters and is perfectly clean. But there is a second layer, and it changes the taste of it.
Su Qin was not working for Yan out of loyalty.
The Records of the Grand Historian record that while Su Qin was in Yan he had an affair with the widow of Duke Wen, the mother of the reigning king. When the old duke died and the son took the throne, Su Qin was afraid that the affair would surface and that he would be killed for it. So he went to King Yi and said: if I stay in Yan, I cannot make Yan heavy. If I go to Qi, Yan will become heavy.
The king agreed. Su Qin then staged a quarrel, pretended to flee Yan as a criminal, and went to Qi.
What he did in Qi is written down plainly. He worked for Yan. He urged the king of Qi to build palaces, to make his tomb extravagant, to keep a large hunting park and a large orchestra — anything that would drain the treasury. This policy had a name in the period: wearing a state out.
A state does not have to lose a battle to collapse. Let it spend its money, year after year, on halls and graves, and in twenty years it is hollow.
So the ten cities were recoverable from the start. What Su Qin wanted was never a strong Qi. It was a safe Yan.
There is something cold in this. A spy stood in the hall of an enemy king, and with a beautiful argument persuaded that king to do a thing that was also good for the enemy king. Qi gained a reputation for magnanimity. Yan got its land back. Qin kept its dignity. All three men came out ahead.
The real bill for Qi arrived thirty years later.
The phrase 转祸为福 has been worn smooth since. People use it for money lost, for illness survived, for any bad year that ended. As though the turning were something that happens to a man rather than something a man does.
Su Qin was not talking about that.
He was talking about managing affairs — the two characters in the original are blunt, they mean handling the business. The thing has already gone wrong. The people who broke it have already acted. You are left holding very little. At that point you do not wait for luck. You look for the one piece still worth something, and you spend it.
What Su Qin found was Qin’s face.
The ten cities were Qi’s spoils. But the same ten cities were also the evidence that Qi had made an enemy of Qin. Su Qin did not ask the king to apologise, and he did not ask him to be afraid. He showed him that the cities could be given away, and that giving them away would buy something larger.
The same object is a liability in one hand and a bargaining chip in another.
That is the turn.
That winter the ten cities were handed back one by one. The flags on the walls changed. The garrisons withdrew. Yan officials came in to count households and register fields.
King Yi of Yan sat in his hall and took back the land his father had lost.
He never learned that the man who arranged it had left Yan carrying an affair he could not speak of.
He knew only that the envoy had come back from Qi with the dust of that country still on his clothes.
And King Xuan of Qi, in his palace at Linzi, presumably thought he had played a fine hand. Ten cities, and the goodwill of the world thrown in.
Thirty years later the armies of Yan came down from the north and did not stop until they reached Linzi.
The general was Yue Yi.
By then King Xuan had been dead a long time.
The story has the clean shape of a Chinese fable, and the policy inside it is the plain arithmetic of a Chinese proverb: an enemy made for a profit is a debt with interest attached.