Off-spinner Simon Harmer took four wickets in the space of a few overs as Bangladesh collapsed in the first session of the final day, handing South Africa a nine-wicket win in the first Test in Johannesburg on Thursday.
Resuming on 100 for five, 57 runs behind, Bangladesh lost their last five wickets for 68 runs and were bowled out for 168. South Africa then reached their 12-run target in nine balls, losing Marques Ackermann.
The win gave South Africa a 1-0 lead in the two-match series and took them to the top of the World Test Championship table.
It was Bangladesh's ninth consecutive Test defeat in South Africa, and their 15th in 17 Tests against the Proteas.
Harmer finished with six for 51, the fourth five-wicket haul of his Test career.
Kagiso Rabada, who grabbed five wickets for 70 in the first innings and made a career-best 72 with the bat, took three for 48 in the second innings to be named player of the match.
Litton Das started the day brightly. He completed 2,000 partnership runs with Mushfiqur Rahim in Tests with a cover drive off Rabada, and pulled two Marco Jansen bouncers for four.
Bangladesh scored 30 runs in the first half hour.
But Rabada bowled Litton for 39 off 38 balls, with six fours, when a full delivery took the inside edge as he tried to drive.
Mushfiqur and Mehidy Hasan Miraz then took Bangladesh past the deficit to avoid an innings defeat, but Harmer took all four remaining wickets after the drinks break.
Mushfiqur was caught at short leg off his glove and pad for 22 after South Africa reviewed a not-out decision. Miraz was stumped in Harmer's next over, charging down the pitch to play a big shot.
Hasan Mahmud was caught at short leg, and Ebadot Hossain holed out at the boundary next ball trying to hit a six.
Chasing 12, South Africa lost Ackermann in the first over, caught at slip off Miraz.
Ebadot bowled Aiden Markram in the second over, a ball after being hit for six, but the delivery was called a no-ball, and Markram finished the match soon after.
Bangladesh made 400 in their first innings, their highest total against South Africa, with centuries from Towhid Hridoy (137) and Litton.
South Africa replied with 557, taking a 157-run lead. Ryan Rickelton scored 102, his fourth Test century, and Ackermann made 157. Bangladesh dropped Rickelton on nought and 30, and Rabada on 38.
Litton set a world record for a wicketkeeper with eight dismissals – six catches and two stumpings – in South Africa's innings.
The second and final Test begins at SuperSport Park in Centurion on November 23.