Sarfaraz Ahmed has continued his red-hot form with a thrilling century to help Pakistan eke out a draw in a nail-biting second and final Test against New Zealand.
The 35-year-old Sarfaraz, who also struck half-centuries in his three previous innings after being recalled for the series following a near-four year absence, made 118 before Pakistan's last-wicket pair hung on in dimming light for 21 balls to leave Pakistan on 9-304.
It took the hosts just 15 runs away from a famous win on Friday evening, while New Zealand were left even more frustrated when bad light called a halt to proceedings.
It meant the two-Test series ended in a winless stalemate, but the final day of the decider made for compelling viewing.
The visitors had taken seven wickets on Friday and were within one more scalp of forcing a win when play was ended.
Sarfaraz was Pakistan's hero, standing firm for 4 fours 48 minutes and featuring in a second successive century stand with Saud Shakeel (32) after the Black Caps had reduced Pakistan to 5-80 before lunch thanks to Michael Bracewell (4-75) claiming two wickets in six deliveries.
Sarfaraz and Shakeel defied New Zealand for nearly three hours before Shakeel fell to a brilliant reflex catch in the slips by Daryl Mitchell early in the final session.
Agha Salman made a brisk 30 but was clean bowled by Matt Henry before New Zealand struck twice with the second new ball under fading light.
Hasan Ali was trapped leg before wicket by Tim Southee and Sarfaraz was superbly snapped up by Kane Williamson low at leg slip off Bracewell's sharp off-spin, and the Pakistan batter walked off to a standing ovation from the sparse crowd at the National Stadium.
No.10 Naseem Shah and No.11 Abrar Ahmed then held out against Bracewell and fellow spinner Ish Sodhi (2-59), with all 10 fielders around the bat, before bad light ended play with three overs left.
"Dream comeback for him," captain Babar Azam said of Safaraz's heroics.
"Sarfaraz did not let the fire die within him in four years. His work ethic was always there and he continued to wait for his turn."
"Came down to the last moments, great end to 10 days of pretty tough toil," said New Zealand captain Southee.
"We knew from the nature of the surface that things could happen late in the Test but Sarfaraz was probably the difference. We could've won had we got him earlier."
Sarfaraz, who hit nine fours and a six in his first Test century since making 112 against New Zealand in Dubai in 2014, said: "When 140 runs were left in the final session, the management said that you need to keep trying to score when the ball is there to hit.
"If those two wickets didn't fall then the result could've been something else."