The Pakistani team Ends South Africa's 10-Test Unbeaten Run.
Shaheen Afridi took four wickets in the final innings after going wicketless in the initial innings.
Opening Test, the Gaddafi Stadium (day four)
The home side 378 (Imam 93, Agha 93; Muthusamy 6-117) & 167 (Babar Azam 42; the spinner 5-57)
South Africa 269 (De Zorzi 104; Noman 6-112) & 183 (Dewald Brevis 54; Shaheen 4-33, Noman 4-79)
Pakistan won by 93 runs
Pakistan brought an end to world champions South Africa's unbeaten run by sealing a 93-run victory in an thrilling and closely contested first Test in the city of Lahore.
South Africa, who had a 10-Test unbeaten run in the longest format culminated in a win against Australia in the WTC final in June, were dismissed for 183 in pursuit of 277.
Starting the day on 51-2, they lost century-maker De Zorzi leg before wicket to left-arm quick Afridi to the third delivery of the day to shift the tightly balanced run chase in Pakistan's favour.
Left-arm spinner Noman, who took 10 wickets for 191 runs in the game, removed Tristan Stubbs for 2 and bowled Dewald Brevis, who put up a fight with a run-a-ball 54.
Off-spinner Sajid Khan also took advantage of sharp turn to end opener Rickelton's stay - he faced 145 deliveries for 45 runs - and Shaheen returned in the post-lunch session to knock over the lower order with a impressive exhibition of reverse swing.
He had Kyle Verreynne leg before for nineteen and bowled Prenelan Subrayen and Kagiso Rabada to secure the win.
It was each team's first match of the 2025-2027 World Test Championship cycle and propels Pakistan directly into the number two spot behind table-toppers Australia.
The win was founded on contributions of 93 by opening batsman Imam-ul-Haq and, importantly, all-rounder Agha which lifted them to three hundred and seventy-eight.
After that spinners Noman Ali and Sajid Khan utilized helpful home pitches, as they did in their series victory over the English team last year, to sustain their lead.
The second and last match begins on 20 October.