(CNN) -- Mohammad Yousuf scored a century on his return to Test cricket as Pakistan took a useful lead on day two of the first Test against Sri Lanka at Galle.
Yousuf scored a century in his first Test match since being banned by Pakistan in December 2007.
Yousuf's knock of 114 injected life and momentum into a Pakistan innings, which had collapsed to 80 for four under a tough examination from Sri Lanka's fast bowlers in the morning.
Yousuf proved the star in a 139-run stand for the fifth wicket with Misbah-ul Haq (56) and put Pakistan ahead for the first time in the match with a 75-run stand for the sixth wicket with Shoaib Malik (36).
Fast bowler Nuwan Kulasekara hit back with the second new ball and finished the innings with four wickets as Pakistan were bowled out for 342, a lead of 50 runs on Sri Lanka's first innings score of 292.
Sri Lankan opener Malinda Warnapura then safely negotiated the one over to stumps, but the home side still face a tough task ahead.
Yousuf, who turns 35 next month, was playing his first Test match since December 2007 after being banned by the Pakistan board for his involvement with the unauthorised Indian Cricket League.
But the prolific right-hander was rehabilitated with a call-up for the current tour after breaking links with the rebel body -- and repaid the selectors' faith with his 24th Test century.
The 80-Test veteran hit 11 boundaries as he claimed his first Test hundred against Sri Lanka when he was run out in the final session attempting a cheeky single.
The three-match series is the first between the two nations since armed gunmen attacked the Sri Lankan team bus in the Pakistani city of Lahore on March 3 while the squad was en route to resume a Test match.
The attack injured seven Sri Lankan players and killed eight local security men.
The two teams recently contested the World Twenty20 final in England where Pakistan beat Sri Lanka by eight wickets.