Younus Khan scored his 18th Test century as Pakistan closed day three of the third and final Test against Sri Lanka in Sharjah on 282 for six.
Sri Lanka, who were bowled out for 413 on day two, still hold a good position, however, after they grabbed three late wickets as they chase a victory which would ensure a 1-1 draw in the series.
Younus scored 122 from 211 balls while half-centuries from Azhar Ali (53) and Misbah-ul-Haq (50 not out) helped Pakistan build their innings.
Azhar and Younus put on 98 for the third wicket to take Pakistan from 35 for two to 133 for three and their partnership was broken when Kosala Kulasekara grabbed his maiden Test wicket by bowling Azhar.
Younus then joined forces with captain Misbah and put on a stand worth exactly 100 but once that milestone had been reached, Sri Lanka's fightback began.
Chanaka Welagedara bowled Younus and had Asad Shafiq (16) caught by Kaushal Silva before Adnan Akmal (7) was trapped in front by Rangana Herath.
Misbah stood firm, making 50 in 164 deliveries and alongside him at stumps was Abdur Rehman on three.
Sri Lanka took the best part of two days to reach their first innings score as Kumar Sangakkara top scored with 144.
© Cricket World 2011
Open an account with bet365 today and qualify for up to £200 in free bets with our fantastic 100% Deposit Bonus.