The Treaty of Shaoxing was the peace of 1141 (the eleventh Shaoxing year) between the Southern Song and the Jin. After Jin's violated truce and failed invasion of 1140 both sides were war-weary; Jin dangled the return of Empress Dowager Wei and Huizong's coffin to hurry the peace, the Song court first stripping its great generals of command and jailing Yue Fei — in the eleventh month Song and Jin agreed: Song to hold the position of vassal, generation after generation; the border to run down the middle of the Huai to the Dasan Pass, Tang and Deng north of it to Jin; a yearly tribute of 250,000 taels of silver and 250,000 bolts of silk; Huizong's coffin and the dowager returned. A month after the peace Yue Fei was put to death in the Court of Judicial Review. The treaty held near twenty years, until Wanyan Liang's southern invasion at the Shaoxing period's end. It fixed the Southern Song's settled shape — 'and men take Hangzhou for Bianzhou' — the Longxing and Jiading renewals both drafted on its model: the shame of vassalage and the safety of half the realm forming the standing tension of Southern Song politics. Gaozong settled into Lin'an; the embassies passed on the roads year after year, and the south's civilization flourished even in the partial peace.