城下之盟

Idiom

 * 1) treaty or oath forced to make with the enemy when the it is right outside of the walls of the city