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.
|Button enjoying racing for first time in years|
|Dortmund chief not planning Pulisic sale|
|Theismann: Smith leg break ´heart-wrenching´ to watch|
|Wolves defender Jonny suffers knee injury|
|Holmes to meet with Sharks amid NFL switch talk|
|LeBron made 51 points ´look easy´, says Walton|
|McGuire signs four-year deal with Cowboys|
|Bears beat Vikings to extend NFC North lead|
|Peng overcomes Davis in Houston final|
|Kerr says this has been his toughest stretch as Warriors coach|
|LeBron scores 51 in Lakers´ win, Warriors fall to Spurs|
|Win more than Djokovic? Let´s chill out – Zverev|
|Steelers´ rally highlights wild day of close, last-minute finishes|
|Modric not worried about Ballon d´Or|
|Saints pull away for blowout victory over Eagles, extend winning streak to nine|
|Martinez laments loss of control by Belgium|
|Logano claims first NASCAR Cup championship|
|Luis Enrique delighted with attitude of Spain´s squad|
|Stevens tells Celtics to get ´tougher´|
|Griezmann: Being Messi´s lieutenant played a part in rejecting Barcelona|
|Curry proud of how Warriors handled Green-Durant incident|
|Courtois: Belgium thought Nations League job was done|
|Howell ends 11-year title drought to deny record-breaking Rodgers|
|Robben dismisses Bayern title talk|
|Huge blow for Redskins as QB Smith breaks tibia and fibula|
|Switzerland 5 Belgium 2: Seferovic treble crowns incredible comeback|
|Titans DC Pees taken to hospital during Colts game|
|Spain 1 Bosnia-Herzegovina 0: Debutant Mendez spares Morata´s blushes|
|Peterson goes sixth on rushing touchdowns list|
|Titans QB Mariota suffers elbow injury|
|Djokovic hails much-improved Zverev|
|Arnautovic refuses to discuss West Ham future after Austria win|
|Redskins QB Smith carted off after gruesome ankle injury|
|Jaguars shut down Jalen Ramsey trade rumours|
|Classy Zverev revels in victory, hails defeated Djokovic|
|Forget the Nations League was ever invented, jokes Northern Ireland boss O´Neill|
|Magnificent Zverev claims ATP Finals title|
|Mahrez double fires Algeria to 2019 AFCON|
|Mbappe hoping for French winner of Ballon d´Or|
|Northern Ireland 1 Austria 2: Last-gasp winner denies hosts maiden Nations League point|
|Teenager admits assaulting Wales great Thomas|
|Browns deny Condoleezza Rice is candidate for head coaching job|
|Koeman: Netherlands not favourites for Germany clash|
|Dalic ´not sad´ but blames fatigue for Croatia relegation|
|Proud Southgate hails England hero Kane as world´s best goalscorer|
|Last-gasp Exeter penalty try shatters Bristol|
|Mbappe dismisses talk of Cavani-Neymar rift|
|Keita will do ´great things´ for Liverpool – Mane|
|Mourinho needs time to fix Manchester United - Veron|
|Southgate sees progress as England reward loyal support|
|Miller hungry to ´knock out a Brit´ after Dinu demolition|
|Yasir, Hasan put Pakistan in control with five-wicket hauls|
|England´s resilience delights Kane as Three Lions secure Nations League Finals spot|
|Kane proves Nations League importance to England in Wembley decider|
|Muller, Hummels still important for Germany, says Low|
|Tevez in line for start in Copa Libertadores final second leg|
|England 2 Croatia 1: Kane able to secure Nations League Finals spot|
|It doesn´t sound real - Molinari stunned by 2018 exploits|
|Wales legend Thomas victim of alleged homophobic attack|
|Marquez crashes again as Dovizioso wins rain-interrupted Valencia GP|
|Warriors owner denies taking sides following Green-Durant spat|
|Alisson can become a global great, says Dida|
|The Sunday Seven - 7 Key Opta facts for NFL Week 11|
|Teen driver ´fine´ after sustaining spinal fracture in F3 crash|
|Willett wins first title since Masters triumph, Molinari tops Race to Dubai standings|
|Southgate overcomes ´stigma´ of being sacked to thrive with England|
|Anthony to Lakers ´not a question for myself´, says LeBron James|
|Warriors´ Stephen Curry staying ´cautious´ with injury recovery|
|Gunter hopes Bale can help family jet in to witness Wales record|
|Root pleased to practice what he preached|