Tailender Jason Holder scored 13 runs from the final over as West Indies escaped with a tie in the third one-day international with Pakistan.
Pakistan had seemed set for victory in St Lucia despite a modest total of 229-6, but the hosts' last-wicket pair of Holder and Kemar Roach managed to stay alive and ensure the spoils were shared.
Misbah-ul-Haq and Lendl Simmons each scored 75, while Pakistan's Saeed Ajmal finished as the pick of the bowlers with figures of 3-36.
The five-match series remains tied at 1-1 after the opening two contests were shared.
The hosts started their reply slowly, losing openers Chris Gayle for eight and Johnson Charles for six, but a fourth-wicket partnership of 91 between Marlon Samuels (46) and Simmons brought them back into contention.
Mohammad Irfan removed Samuels to leave the hosts on 141-4 and Ajmal claimed his first wicket when he had Simmons caught at deep midwicket by Ahmed Shehzad.
Ajmal continued to have success, but 21-year-old Holder took a liking to Wahab Riaz at the death to rescue a tie for the Windies.
The No 11 smashed a six and a four off Wahab, while Umar Akmal fumbled a run-out opportunity on the final delivery to allow Holder (19 not out) and Roach (6no) to run two and level the scores.
Earlier Misbah anchored a disjointed innings with a patient knock, although Pakistan were equally indebted to Akmal after he and Wahab added a much-needed and breezy 52 from the final 26 balls.
Holder combined with Kemar Roach to ensure Pakistan began at a crawl after skipper Dwayne Bravo had opted for first use of the ball.
Misbah reached his half-century from 91 balls but when he fell in the 45th over, bowled by Bravo, Pakistan were still only 174-5.
Any hope Shahid Afridi might supply some of his characteristic late fireworks ended abruptly, the all-rounder managing just one before Holder dismissed him, but Akmal ably filled his shoes with an unbeaten 40 from 31 balls.
Wahab also contributed 19 from 10 balls, hitting Bravo for back-to-back sixes in a penultimate over that cost 16.