The Pakistani team Ends the Proteas' 10-match Unbeaten Run.
Shaheen Afridi secured a quartet of wickets in the second innings after going wicketless in the initial innings.
Opening Test, the Gaddafi Stadium (the fourth day)
The home side 378 (Imam 93, Salman Agha 93; Senuran Muthusamy 6-117) & 167 (Babar 42; Muthusamy 5-57)
The visitors 269 (De Zorzi 104; Noman 6-112) & 183 (Dewald Brevis 54; Shaheen 4-33, Noman 4-79)
The hosts secured a 93-run victory
The national team terminated the reigning champions South Africa's winning streak by completing a 93-run triumph in an entertaining and closely contested first Test in the city of Lahore.
South Africa, who had a 10-Test winning streak in the longest format ended with a win against Australia in the WTC final in the month of June, were dismissed for 183 in pursuit of 277.
Starting the day on 51-2, they lost first-innings centurion De Zorzi lbw to left-arm quick Afridi to the third delivery of the day to shift the finely-poised chase in Pakistan's favour.
Left-arm spinner Noman Ali, who claimed 10-191 in the match, removed Stubbs for two and clean bowled Dewald Brevis, who put up a fight with a rapid 54.
Off-spinner Sajid Khan also capitalized on sharp turn to end opener Rickelton's stay - he faced 145 deliveries for 45 - and Shaheen came back in the post-lunch session to dismiss the tail with a impressive exhibition of reverse-swing bowling.
He had Kyle Verreynne leg before for nineteen and dismissed Subrayen and Rabada to secure the win.
It was both sides' opening game of the 2025-27 Test championship cycle and moves the hosts straight into second place after leaders the Australian team.
Their victory was founded on key performances of ninety-three by opener Imam-ul-Haq and, importantly, all-rounder Agha which lifted them to three hundred and seventy-eight.
From there slow bowlers Noman and Sajid Khan took advantage of favourable home conditions, as they had in their Test series win over England last year, to maintain their advantage.
The second and final Test starts on 20 October.