Ireland's historic Test debut ended in a five-wicket defeat, but only after they had given Pakistan a major scare on the final day at Malahide.
The tourists ultimately prevailed with a degree of comfort, reaching a target of 160 thanks largely to Imam-ul-Haq's unbeaten 74 and 59 from Babar Azam.
However, Pakistan had crumbled to 14-3 in Tuesday's morning session, raising the prospect of a stunning Ireland victory after the hosts had been made to follow on.
Mohammad Abbas finished with a five-for and match figures of 9-110 as Ireland were dismissed for 339 having resumed on 319-7, the dangerous Kevin O'Brien failing to add to his overnight score of 118.
Pakistan's subsequent wobble left the match fascinatingly poised, but Imam and Babar restored order and the chase was completed before tea, allowing Pakistan to look ahead to facing England, while Ireland reflect on a promising first venture into the Test arena.
Pakistan have won by 5 wickets. We may not have got the win, but it was a fantastic effort from every one of our team on a historic occasion. They’ve done us proud.— Cricket Ireland (@Irelandcricket) May 15, 2018
Thank you @TheRealPCB for a fantastic Test match.#IREvPAK #BackingGreen pic.twitter.com/9cSBRpOKk7
O'Brien's hundred, which will go down in the history books as his country's first in this format, kept Ireland alive on day four, but he departed to the first ball he faced on Tuesday, edging Abbas to Haris Sohail at slip.
Abbas swiftly removed Boyd Rankin (6) and Tyrone Kane (14) to return second-innings figures of 5-66.
Ireland fought back superbly, though, taking three quick wickets to bring the contest to life.
Tim Murtagh had Azhar Ali (2) caught at first slip and bowled Asad Shafiq (1), either side of Sohail (7) departing to an excellent Ed Joyce catch in the gully off Rankin.
However, debutant Imam and Babar maintained their composure to combine for 38 runs before lunch and their alliance continued well into the afternoon after the latter was dropped by Andrew Balbirnie off Murtagh on nine.
Babar was eventually run out by Balbirnie and Pakistan captain Sarfraz Ahmed (8) fell lbw to Stuart Thompson, but the second Ireland rally came too late and top-scorer Imam fittingly contributed the winning runs.
20 de mayo 2018
|Walker out with eye socket fracture following Melbourne-Manly brawl|
|Don´t try it at home! - LeBron wows with game three passing|
|Dragons restore two-point lead, Sharks battle past Bulldogs|
|Any club would want Buffon, says PSG president|
|Villarreal renew Calleja contract after Europa League qualification|
|Talisca heading to Premier League, hints Besiktas boss|
|Celtics ´needed to get our butts whooped´ by Cavs, says Rozier|
|Bayern should have had a penalty, admits Boateng|
|NBA great Bill Russell released from hospital|
|When I play I´m Luca, not Zidane – Zinedine´s son distances himself from father|
|Barzagli: Buffon the greatest of all time|
|Indians ace Kluber becomes first in AL to seven wins|
|MLS Review: Two-goal Villa inspires NYC rout, Timbers stay hot|
|Kuznetsov sets Capitals´ playoff points record|
|Stevenson-Jack showdown ends in majority draw|
|Galatasaray win 21st Turkish title on final day|
|Cavaliers rout Celtics to cut series deficit to 2-1|
|Harvick holds off Suarez to win All-Star race and $1m|
|All Blacks name three new faces for France Tests|
|Mo Salah 15 years behind Cristiano Ronaldo – Klopp|
|Jaguares extend winning streak with Bulls thrashing|
|Nobody is bigger than PSG, says Al-Khelaifi amid doubts over Neymar|
|Warrington targets Frampton after Selby upset|
|Zidane says Real Madrid are ready for Champions League final|
|Heynckes: Bayern aren´t bad losers after DFB-Pokal snub|
|Everything was positive - Emery leaves PSG satisfied|
|Wise, Leishman tied for Byron Nelson lead|
|Torres, Iniesta share gift of good decisions - Simeone|
|Arrivederci Buffon - The Juventus´ greats remarkable career in numbers|
|Favre leaves Nice as Dortmund post awaits|
|´Extraordinary´ Juventus deserved Serie A title - Allegri|
|Warrington upsets bloodied Selby to secure world title|
|Sweden batter USA, Swiss roll on to gold medal match|
|Zverev battles past Cilic to extend winning streak|
|It was a penalty - Kovac acknowledges Frankfurt´s good fortune ahead of Bayern move|
|Ligue 1: Depay fires Lyon into Champions League as Troyes go down|
19 de mayo 2018
|Tigers tear Rhinos to shreds as Saints stay clear at the summit|
|Mourinho criticises Chelsea long-ball tactics in FA Cup final|
|Caen 0 Paris Saint-Germain 0: Stalemate closes Emery tenure as Caen survive|
|Villarreal 2 Real Madrid 2: Luca´s debut misjudgement costs Los Blancos|
|Conte reaffirms Chelsea commitment and hints at Italy offer|
|Leicester agree €20m deal for Porto´s Pereira|
|Bayern Munich 1 Eintracht Frankfurt 3: Controversial Kovac win denies new club double delight|
|I am a serial winner, Conte declares after Chelsea´s FA Cup glory|
|Courtois delighted to dispel doubts with FA Cup triumph|
|FA Cup win was to save Chelsea season - Cahill|
|Brilliant Hazard ensures Conte´s serial-winner status remains intact|
|Knight Riders cruise into the IPL play-offs|
|Mourinho: I can imagine what people would say if my team played like Chelsea|
|Mourinho: Lukaku chose not to start FA Cup final|
|Hazard shies away from future talk after Chelsea´s FA Cup success|
|Today is your moment - Juventus legend Del Piero pays tribute to Buffon|
|Chelsea 1 Manchester United 0: Hazard seals FA Cup glory in possible Conte farewell|
|Pellegrini leaves Hebei China Fortune amid West Ham links|
|Arnold sees red as Lions overpower Brumbies|
|Toulouse out as Castres advance to Top 14 semi-finals|
|Ruthless Chiefs dominate Falcons to reach Twickenham again|
|Host Pieters crashes out in Belgian Knockout|
|Quarterback Manziel heading to the CFL|
|Valverde content with domestic double in debut Barca season|
|Froome and Yates pull off British Giro one-two|
|Leinster hold nerve to fend off Munster|
|Mancini hands Balotelli Italy recall|
|Valverde sees no way of replacing Iniesta|
|Celtic complete historic double treble by seeing off Motherwell|
|No regrets for Payet after injury ends World Cup dream|
|Pjanic honoured to have played with Juventus great Buffon|
|Nadal grinds out Djokovic win to set up Rome final and shot at number one|
|Lukaku on bench for FA Cup final, Chelsea pick Giroud|
|Gopal puts Bangalore in a spin as Rajasthan Royals stay alive|