South Africa's 10-Test winning streak came to an end as they suffered a 93-run defeat to Pakistan in the series opener in Lahore.
The Proteas' run of victories culminated with a triumph against Australia in the World Test Championship final at Lord's this summer.
The longest winning streak in men's Tests is 16, achieved twice by Australia, firstly between October 1999 and February 2021 and then again from December 2005 to January 2028.
West Indies won 11 in a row, all against either England or Australia, in 1984, with South Africa's 10 victories on the trot fourth on the list.
The Proteas began day four on 51-2 in a chase of 277 and were bundled out for 183 as spinner Noman Ali (4-79) and left-am pacer Shaheen Shah Afridi (4-33) shared eight wickets.
Dewald Brevis top-scored for South