Aaron Finch's half-century and Ben McDermott's composure proved to be decisive as Australia defeated Pakistan by three wickets in Tuesday's thrilling one-off T20I.
Pakistan won the ODI series thanks in large part to the brilliance of captain Babar Azam and his superb 66 propelled the hosts to a competitive 162-8 in Lahore.
Babar's composure at the crease was much-needed for Pakistan, who lost Mohammad Rizwan (23) and Fakhar Zaman (0) in successive balls to T20I debutant Cameron Green (2-16).
Adam Zampa finally drew a stray shot out of Pakistan's skipper, who picked out Nathan Ellis to leave his side on 118-4.
Having already dismissed Iftikhar Ahmed, Ellis – the pick of Australia's bowlers with 4-28 – then did the damage through Pakistan's middle order, getting rid of the dangerous Khushdil Shah (24), Asif Ali (3) and Shaheen Shah Afridi (0), though Usman Qadir's flurry of 18 not out boosted the hosts.
Travis Head quickly set about getting the tourists' chase on its way, scoring a rapid 26 that included four boundaries before he was sent packing by Haris Rauf.
Josh Inglis (24) kept up the pace until Qadir struck, but Australia seemed well set before Marnus Labuschagne, Marcus Stoinis and Green were dismissed in the space of 20 balls.
Yet captain Finch anchored the chase as he returned to form following back-to-back ducks in the ODI series, with his steady innings steering Australia into needing 15 runs from three overs.
A costly start to the 18th over from Haris saw McDermott plunder successive boundaries, though the pressure was back on Australia when Finch found Asif in the deep.
Afridi (2-21) rounded off an excellent spell by bowling Sean Abbott for a duck, yet another poor Haris ball handed McDermott the chance to clip away the winning boundary.
Captains come up big
Babar gave yet another exhibition of how he has risen to the top of the batting rankings in another sensational knock - his 66 coming at a strike rate of 143.47.
Yet it was World Cup winner Finch who took the trophy, as he showed plenty of patience to stay at the crease for 18 overs, showing why interim head coach Andrew McDonald backed him to stay on as skipper.
Historic tour comes to a close
It has been a brilliant match-up between Pakistan and Australia over the last month or so and the tourists will finally return home.
Australia have now won each of their past four T20Is against Pakistan, the first time they have gone on such a run, though this was the first meeting in the format between the teams in Pakistan.