The Pakistani team Stops the Proteas' 10-match Unbeaten Run.
Shaheen Afridi claimed a quartet of wickets in the final innings after going wicketless in the first session.
Opening Test, the Gaddafi Stadium (the fourth day)
The home side 378 (Imam-ul-Haq 93, Salman Agha 93; Muthusamy 6-117) & 167 (Babar 42; the spinner 5-57)
The visitors 269 (De Zorzi 104; Noman 6-112) & 183 (Dewald Brevis 54; Shaheen Afridi 4-33, Noman 4-79)
Pakistan won by 93 runs
The national team halted world champions the Proteas' winning streak by achieving a 93-run triumph in an entertaining and hard-fought first Test in Lahore.
The Proteas, who had a 10-Test unbeaten run in the longest format ended with victory over the Aussies in the World Test Championship final in June, were dismissed for 183 in pursuit of 277.
Starting the day on 51 for two, they lost century-maker Tony de Zorzi lbw to pace bowler Afridi to the third ball of the day to shift the tightly balanced chase in Pakistan's favour.
Slow left-armer Noman, who claimed 10 wickets for 191 runs in the game, dismissed Tristan Stubbs for two and bowled Dewald Brevis, who offered some resistance with a rapid 54.
Off-spinner Sajid Khan also capitalized on significant spin to end opening batsman Ryan Rickelton's stay - he faced 145 deliveries for 45 runs - and Shaheen came back in the afternoon session to dismiss the tail with a impressive exhibition of reverse-swing bowling.
He had Verreynne lbw for 19 and bowled Subrayen and Rabada to seal the win.
It was both sides' first match of the 2025-27 Test championship cycle and moves Pakistan straight into the number two spot behind table-toppers Australia.
Their victory was built around contributions of 93 by opener Imam-ul-Haq and, importantly, all-rounder Agha which boosted them to three hundred and seventy-eight.
From there slow bowlers Noman Ali and Sajid utilized favourable home conditions, as they did in their Test series win over England the previous year, to maintain their advantage.
The next and last match begins on 20 October.