England have qualified for the semi-finals of the ICC World Twenty20 after Pakistan beat South Africa by 11 runs in the penultimate Group E fixture.
Pakistan, the reigning champions, defended a modest total of 148-7 in St Lucia, their spinners exerting a stranglehold to restrict South Africa to 137-7 in reply.
Defeat ended the Proteas' hopes of reaching the last four but Pakistan have scraped through after England beat New Zealand later on Monday.
Victory for the Black Caps would have sent Pakistan home, however England did the defending champions a huge favour with a three-wicket triumph.
Umar Akmal's 51 from 33 balls bailed out Pakistan after they had opted to bat first in the must-win encounter at the Beausejour Stadium.
Soyth Africa seamers Dale Steyn (1-26), Jacques Kallis (1-28) and Charl Langeveldt each struck an early blow to leave Pakistan reeling at 18-3 after five overs.
But the Akmal brothers, Kamran and Umar, maintained a fearless approach to revive the innings with a 51-run stand for the fourth wicket off just 36 deliveries - spinners Roelof van der Merwe (1-33) and Johan Botha (0-13) coming in for particular punishment.
After left-arm spinner Van der Merwe had gained a revenge of sorts by having Kamran Akmal caught at point for 37 from a miscued cut, Shahid Afridi (30) joined Umar Akmal in a 61-run alliance for the fourth wicket.
Pakistan's charge finally stalled in the 17th over when Langeveldt removed both batsmen on the way to finishing with figures of 4-19.
Just 18 runs were added in the final three overs and Pakistan's final total looked a touch light.
South Africa's run chase, however, never got off the ground. Herschelle Gibbs, preferred to Kallis as Graeme Smith's opening partner, made three off nine deliveries before being well held above his head by Misbah-ul-Haq from a middled pull at medium pacer Abdul Razzaq (1-16).
It was the introduction of spin as early as the fifth over that turned the game decisively in Pakistan's favour - Smith, struggling for fluency throughout, departed to Abdur Rehman (2-35) for a run-a-ball 13.
There was a lack of urgency from Kallis and AB de Villiers during a third-wicket stand of 33 from 37 balls and, as the required rate climbed above 10-an-over, the mounting pressure resulted in wickets.
Kallis (22) and JP Duminy (3) both holed out going for big shots and, when De Villiers (53) followed from an ill-advised scoop at off-spinner Saeed Ajmal (4-26) in the 16th over, South Africa still required 48 from the final 26 deliveries.
And despite the best efforts of Botha, who plundered 19 from eight balls to at least extend the game into the final over, the Proteas finished up short to exit the competition with barely a whimper.