Sarfraz Ahmed, the Pakistan captain, won the toss and opted to bowl in the last league match of the Champions Trophy against Sri Lanka.
Junaid Khan provided the first breakthrough by dismissing Dhanushka Gunathilleke for 13.
Hasan Ali celebrates after dismissing Kusal Mendis for 27
Fahim Ashraf celebrates after Dinesh Chandimal is out for a duck
Niroshan Dickwella scored a measured 73 off 86 deliveries including four fours.
Asela Gunaratne(in pic) combined with Suranga Lakmal for a partnership of 46 runs in an effort to put up a total of 236.
Fakhar Zaman scored a half century off 36 balls including eight fours and one six before being caught by Gunaratne.
Suranga Lakmal celebrates after taking the wicket of Azhar Ali for 34.
Mohammad Amir and Sarfraz Ahmed celebrate after putting on an unbeaten 75-run stand for the eighth wicket to take Pakistan home with three wickets to spare.
Sarfraz Ahmed's innings against Sri Lanka powered them to the semis and gave them a huge boost of confidence
Mohammad Amir too showed that he could bat and held his nerve with an unbeaten 28 off 43 balls.
Nuwan Pradeep then ran through Pakistan's batting order and finished with 3 for 60