Mayers' innings is the highest individual collection for West Indies in the fourth innings of a Test since Brian Lara stunned Australia with 153 runs in Bridgetown in 1999. "It's a great feeling to be playing Test cricket, and then going on to score 100, 200 and then to win the match," Mayers said.
Spinner Axar Patel took 11 wickets over two innings as India outplayed their rivals in all departments in the day-night game to take a 2-1 lead in the four match series.
Azhar, who was nearly out for seven, fell for 20 when he edged paceman James Anderson and second slip Rory Burns, who had already dropped a catch, held onto a low chance.
It was a remarkable comeback by an inexperienced South African team, who were outplayed in the first Test in Centurion but came back strongly to win the next two matches despite losing the toss and having to bat last in all three matches.
Afridi, fielding at mid-wicket, dived in an attempt to cut off a Dinesh Chandimal boundary on day three and was seen hobbling off the field. He was taken for scans and although there was no fracture, swelling and pain ruled him out.
Chandimal reached his 13th Test hundred with a quick single off Lyon to covers for his second test ton against Australia and the fourth in Galle. This year, Chandimal has hit a purple patch averaging 90 in Tests.
"It's every bowler's dream to get a five-for in Test cricket and the same goes for me," Nawaz told reporters. "I am very happy and I will keep working hard and repeat this kind of performance again."
Shafique hit an unbeaten 160 to steer Pakistan home in a record chase of 342 at the picturesque venue as Pakistan won a tense opening Test in the final session on day five.
Jayasuriya claimed his fourth five-wicket haul in just his third Test to star in Sri Lanka's 246-run win to end the two-Test series level at 1-1 in Galle.