Rohit Sharma inspired India to a victory over South Africa and a series win that ensures they will leapfrog the Proteas and go top of the one-day rankings.
India had already clinched at least a share of the six-match series as they went into the penultimate ODI in Port Elizabeth holding a 3-1 lead, and they duly continued their dominance in a 73-run win.
Having been put into bat India owed a debt of gratitude to Rohit for pushing them to 274-7 with 115 off 126.
Hashim Amla (71) and Heinrich Klaasen (39) gave the Proteas hope, but the run out of the former proved a key moment in the game and when Klaasen fell to the excellent Kuldeep Yadav the writing was on the wall.
India will now look to finish with a flourish in the series finale in Centurion on Friday.
BREAKING: India will finish the #SAvIND ODI series as the number one side in the @MRFWorldwide ICC ODI Rankings after taking a 4-1 series lead with victory in Port Elizabeth!https://t.co/1oA76LNlyI pic.twitter.com/xNpiqW6kFC— ICC (@ICC) February 13, 2018
Shikhar Dhawan got India's innings off to a quick start as he struck 34 off 23 balls in his opening partnership of 48 with Rohit, striking eight fours before he pulled Kagiso Rabada to deep square leg.
Rohit duly picked up where Dhawan had left off, contributing 62 off only 55 deliveries in a second-wicket stand of 105 with Virat Kohli, who was on 36 when he was run out by JP Duminy.
Kohli's dismissal came as a result of Rohit refusing to run and Ajinkya Rahane (8) went in similar fashion as India's centurion was caught ball-watching.
But Rohit, dropped on 96 by Tabraiz Shamsi, made up for those mental errors as he brought up his first hundred in South Africa with a flick past backward square leg.
Rohit eventually fell to Lundi Ngidi (4-51), who had Hardik Pandya for a duck next ball, but Bhuvneshwar Kumar (19 off 20) helped push India to a total that proved well beyond South Africa.
Aiden Markram went for a run-a-ball 32 as he combined for 52 opening runs with Amla, who found little in the way of support as Duminy (1) and AB de Villiers (6) both failed.
Amla, who hit just five boundaries in a workmanlike 92-ball stay, looked to have found a match-winning partner in Klaasen, but an extremely tight direct hit run out review went against him and sparked a Proteas collapse.
Kuldeep then removed Andile Phehlukwayo and Rabada and all hope went when the same bowler had Klaasen stumped as India dethroned South Africa as the top team in the 50-over game.
|Mourinho hugs reporter for asking about McTominay instead of Pogba|
|Di Francesco slams Roma: I should have substituted half of them!|
|Curtains for Konta and Ostapenko in Dubai|
|De Gea happy with ´important´ wonder save|
|Woods eager to experience Masters ´rush´|
|Vazquez and Asensio important to Madrid, says Zidane|
|Shakhtar Donetsk 2 Roma 1: Fred stunner seals first-leg comeback|
|Sevilla 0 Manchester United 0: De Gea ensures Mourinho´s men stay level|
|Klaasen and Duminy half-centuries set up T20 decider|
|Herrera injury gives dropped Pogba chance for reprieve|
|Tindall urges England to ´hunt´ vulnerable Scotland|
|Firmino insists he did not abuse Holgate|
|Leganes 1 Real Madrid 3: Casemiro inspires comeback for Zidane´s men|
|Milan have everything to lose – Gattuso worried about complacency|
|United a big team in defeat - Mourinho aims dig at City|
|Firmino escapes punishment after Holgate allegation|
|Mourinho benches Pogba for Sevilla clash|
|Cavendish withdraws after Abu Dhabi crash|
|Rugby greats put on show in French Alps snow|
|Gremio refute claims of €40m Arthur agreement with Barcelona|
|Messi will sign another Barcelona contract, predicts Bartomeu|
|UEFA rejects PSG appeal over Rabiot´s Real Madrid booking|
|Hardaker sacked by Tigers after failed drugs test|
|James to miss ´a few days´ of Bayern training with calf injury|
|Bellew not feeling Haye love|
|Nantes not stopping Ranieri if Italy come calling|
|Milan owner Li slams ´fake news´ over financial woes|
|Italy make three changes for France encounter|
|Wenger still gunning for top four spot with Arsenal|
|AFC Champions League Review: Kanazaki braces inspires Kashima|
|Gloucester centre Scott to re-join Edinburgh|
|Ospina to get Wembley nod as Wenger waits on Ramsey|
|Pogba not struggling at United, claims Deschamps|
|No police action against Gloucester coach Ackermann or son after nightclub incident|
|Australia proved a point with tri-series dominance, says Warner|
|Escape Messi´s shadow? Change sport! - Henry´s advice to Neymar|
|Scotland unchanged for crucial Calcutta Cup clash|
|Horsing around: Muller takes tips from equine companion|
|Lynn set for further assessment on dislocated shoulder|
|Ronaldo jets off for a break as Madrid head to Leganes|
|Bastareaud back in one of five France changes|
|Mistake to let Kroos leave Bayern for Madrid - Sammer|
|Short´s fifty and Agar´s spin seal deserved Australian tri-series win|
|Spalletti tips Ancelotti for Italy job|
|I can´t wait for retirement - Federer|
|Mendy on course for World Cup, says Deschamps|
|Man Utd on dismal knockout run, Roma have Shakhtar curse - Champions League in Opta numbers|
|Azpilicueta hoping for greater fortune at Camp Nou|
|Out of nothing he can score goals – Heynckes hails Muller|
|CONCACAF Champions League Review: Giovinco inspires Toronto, Tigres held|
|Steelers LB Shazier says he´s ´best linebacker ever´|
|Ranieri: I´ll quit Nantes if offered Italy job|
|Thiem keeps title defence on track, Monfils saves match point in Rio|
|Barcelona are great even without Neymar – Willian|
|Del Potro, Raonic progress at Delray Beach|
|Dolphins place franchise tag on Landry|
|Colts QB Luck ´extremely optimistic´ about shoulder rehab|
|Conte wants to see out Chelsea contract but has bags packed|
|A´s respond to Gruden´s belittling of Oakland|
|Yankees acquire Drury in three-team deal with Diamondbacks, Rays|
|Messi goal will give Barcelona more space at Camp Nou – Suarez|
|Serena Williams: I almost died|
|Conte defends ´incredible´ Christensen after Barcelona error|
|Bayern taking nothing for granted after 5-0 demolition – Heynckes|
|Valverde: Barcelona away goal not definitive for progression|
|Muller & Robben bemoan poor first half despite Bayern rout|
|Ivashka sets up Wawrinka Marseille meeting|
|Chelsea close to a perfect game against Barcelona - Conte|
|Defending for 90 minutes at Barcelona a ´suicide mission´ - Fabregas|
|Championship Review: Villa miss chance to move into promotion places|