Gunathilaka anchored Sri Lanka to a healthy total by featuring in three half-century stands.
Gunathilaka added 88 runs for the second-wicket stand with captain Lahiru Thirimanne (36) before adding further 50 runs with Angelo Perera (13) _ one of the three changes Sri Lanka had made from the second ODI.
But the innings got the real momentum when Gunathilaka put on a better than run a ball 74 runs with debutante wicketkeeper-batsman Minod Bhanuka (36).
Gunathilaka reached his second ODI century off 100 balls when he drove left-arm fast bowler Usman Shinwari to deep point for a single.
Pakistan got a chance to dismiss Gunathilaka but Haris dropped a sitter at point before Mohammad Amir (3-50) had the left-hander clean bowled off a full pitched delivery.
But Dasun Shanaka (43 off 24 balls), who scored a half century in the second ODI on Monday, took charge in the last six overs as Pakistan was let down by sloppy ground fielding.
Wahab Riaz (1-81) was smashed for 37 runs in his last three overs with Shanaka hitting four boundaries and two sixes off the left-arm seamer. Wahab finally deceived Shanaka off a slower last delivery and had him caught at extra cover of the last delivery.
Both teams will now compete in three Twenty20s at Lahore, starting from Saturday.
It is the first time since Sri Lanka's team bus was attacked in Lahore in 2009 that a foreign team is conducting a two-week tour of Pakistan.
Major teams have avoided the country since the ambush that killed eight people and injured several players.
“I am really proud of my team, they fought hard and scored 297, but (in bowling) we didn’t execute our plans in the first 10-15 overs,” Sri Lanka captain Lahiru Thirimanne said.
“It’s very exciting to be here, my first time in Pakistan and I encourage other teams to come and play here,” he added.
/crictoday/media/agency_attachments/2026/07/21/2026-07-21t110708663z-crictpday-logo-2026-07-21-16-37-08.png)
Follow Us/crictoday/media/media_files/wp-content/uploads/2021/01/gunathilaka-1570078283.jpg)