The hosts, needing 99 to win in a minimum of 21 overs, beat fading light and approaching rain to cruise home in the 17th over in front of some 5,000 jubilant home fans.
Jayawardene, who is due to retire from Test cricket after the two-match series, scored 26 before Kumar Sangakkara (21) and skipper Angelo Mathews (25 not out) chipped in lower down the order.
Mathews and Kithuruwan Vithanage smashed 17 runs in the 16th over bowled by Junaid Khan and then scored the winning run in the next over just before rain hit Galle.
Pakistan, who started the day at 4-1, lost three wickets in the morning session to go to lunch on 66-4.
The tourists added eight runs in the morning when seamer Dhammika Prasad had nightwatchman Saeed Ajmal edging a catch to wicket-keeper Niroshan Dickwella.
Opener Ahmed Shehzad made 16 when he was given out leg-before to off-spinner Dilruwan Perera to make it 39-3.
Shehzad, who consulted his partner Azhar Ali before deciding not to ask for an umpire's review, would have survived if he had signalled for it. Television replays showed the ball missing the leg stump.
Ali and skipper Misbah-ul Haq put on 56 for the fifth wicket on either side of lunch when both fell at the same total to make it 111-6 -- just 29 runs ahead with 45 overs left in the game. Ali (41) was caught behind off Herath and Misbah (28) was leg-before to Perera in the next over.
Pakistan found themselves pinned against the wall at 133-7 when Asad Shafiq, the last recognised batsman, was leg-before to Herath for eight.
The second and final Test will be played at the Sinhalese Sports Club in Colombo from Thursday.
You’ve reached your limit of {{free_limit}} free articles this month.
Subscribe now for unlimited access.
Already subscribed? Log in
Subscribe to read the full story →
Smart Quarterly
₹900
3 Months
₹300/Month
Smart Essential
₹2,700
1 Year
₹225/Month
Super Saver
₹3,900
2 Years
₹162/Month
Renews automatically, cancel anytime
Here’s what’s included in our digital subscription plans
Exclusive premium stories online
Over 30 premium stories daily, handpicked by our editors


Complimentary Access to The New York Times
News, Games, Cooking, Audio, Wirecutter & The Athletic
Business Standard Epaper
Digital replica of our daily newspaper — with options to read, save, and share


Curated Newsletters
Insights on markets, finance, politics, tech, and more delivered to your inbox
Market Analysis & Investment Insights
In-depth market analysis & insights with access to The Smart Investor


Archives
Repository of articles and publications dating back to 1997
Ad-free Reading
Uninterrupted reading experience with no advertisements


Seamless Access Across All Devices
Access Business Standard across devices — mobile, tablet, or PC, via web or app
