Dhaka: Abdur Rehman grabbed three quick wickets in the afternoon session to put Pakistan in a winning position on the last day of the second and final Test against Bangladesh in Dhaka on Wednesday.

Pakistan, chasing a 103-run victory target, were 37/1 in their second innings at tea, with Mohammad Hafeez unbeaten on 24 and Azhar Ali 10 not out.

The tourists now need 66 more runs off a minimum of 29 overs in the final session to win the match.

Bangladesh, trailing by 132 runs, collapsed to 234 in their second innings after being comfortably placed at 212/5, with left-arm spinner Rehman taking three wickets and off-spinner Saeed Ajmal two.

Nasir Hossain (79) and skipper Mushfiqur Rahim (53) defied the Pakistani attack for more than a session with their sensible batting under pressure, adding 117 for the sixth wicket before falling in the space of nine runs.

Rehman removed both the well-set batsmen in his four overs before accounting for Shahadat Hossain (one) in the afternoon session.

Nasir, a 20-year-old playing only his fourth Test, cracked 11 fours in his maiden half-century before being bowled by Rehman while Rahim hit seven boundaries in his ninth Test half-century.

Rahim reached his half-century when he swept Rehman for a four but soon lost his patience and wicket, stepping out to attempt a lofted shot off the spinner to be caught by Ajmal at mid-off.

Rehman got another wicket in his next over when he dismissed Shahadat, superbly caught by Younis Khan at first slip, while Ajmal bowled Elias Sunny and had Robiul Islam stumped to complete 50 Test wickets in the year.

Nasir and Rahim earlier applied themselves well in the morning session to keep the Pakistani attack at bay as the hosts added 86 runs to their overnight total of 114/5 after a delayed start due to fog.

Nasir started impressively as he hit paceman Aizaz Cheema for two successive fours in the bowler's opening spell before reaching his half-century with two runs to deep square-leg off Ajmal.

He gave a difficult chance on 51 off fast bowler Umar Gul, but Azhar failed to hold on to the ball at gully.

Rahim waited patiently for loose deliveries to punish, turning Ajmal to fine-leg and then fluently driving the spinner through the covers for fours before slashing Cheema over the slips for a boundary.

Pakistan lead 1-0 in the series after winning the first Test in Chittagong by an innings and 184 runs.