The Battle of Maling was the famous ambush of 341 BC in which the Qi strategist Sun Bin annihilated the Wei army and the Wei general Pang Juan took his own life. King Hui of Wei sent Pang Juan against Han; Han called on Qi, and Qi ran the old play of 'besieging Wei to rescue Zhao', driving straight on Daliang until Pang Juan turned back to meet it. Sun Bin, knowing the Wei soldiers brave but contemptuous of Qi, ran the scheme of the dwindling cookfires: on the first day inside Wei, 100,000 fires; the next day 50,000; the third day 30,000. Pang Juan, counting the fires, judged the Qi army melting with fear — deserters more than half — and threw away his infantry, racing after with his picked troops day and night. Sun Bin reckoned their pace: at dusk they would reach the Maling defile, a narrow road walled with obstructions, and there 10,000 crossbows lay in wait with the order 'when the fire rises, loose all together' — the Wei column broke in chaos, Pang Juan, knowing his wits spent and the battle lost, cut his own throat, and the Qi army, charging on the victory, destroyed the Wei force whole and took the Wei heir apparent Shen captive. Twice beaten — at Guiling and now Maling — Wei's hegemony was finished, and 'the lords faced east to do homage to Qi'. Maling and Guiling together are the hinge of the mid-Warring States contest between Wei and Qi, and the dwindling-cookfires ruse became the classic of feigned weakness to lure the enemy.