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 concerned by Lukaku drought|
|Benzema: I know I must score more goals|
|Maybe journalists criticise because they can´t play football – Marcelo defends Lopetegui|
|Manning on trade rumours: It´s hard to imagine being with another organisation|
|Shaw: Man United showed too much respect to Juve|
|CAF Champions League Review: Al Ahly to face ES Tunis in final|
|76ers star Simmons dealing with back tightness|
|Roma boss Di Francesco hails ´extraordinary´ Dzeko|
|Pizzi and Jardel rue Benfica´s Ajax reverse|
|Championship Review: Leaders held at home, Smith suffers first Aston Villa defeat|
|Mourinho suggests Manchester United must spend to rejoin European elite|
|Manchester City reached their peak against Shakhtar - Guardiola|
|I really missed that winning feeling – Kroos|
|Lopetegui believes Real Madrid win can be turning point|
|Allegri: Juventus still making too many mistakes|
|Cole leads unbeaten Avellino to overtime victory|
|Mourinho hails ´amazing´ Chiellini and Bonucci after Juventus outclass United|
|Simeone glad to have Costa back for Dortmund clash|
|Lopetegui to remain in charge for El Clasico - Butragueno|
|Isner saves two match points to beat Norrie, Federer grinds out victory|
|Icardi happy at Inter ahead of Barca return|
|Marcelino satisfied with point after Valencia hold on at Young Boys|
|Hoffenheim 3 Lyon 3: Joelinton rescues a point after Kramaric´s double|
|Ajax 1 Benfica 0: Last-gasp Mazraoui seals dramatic win|
|Roma 3 CSKA Moscow 0: Dzeko turns on the style|
|Kovac lauds dominant Bayern|
|Shakhtar Donetsk 0 Manchester City 3: Silva sparkle to dominant display|
|Manchester United 0 Juventus 1: Dybala downs Mourinho´s men on Ronaldo´s return|
|Real Madrid 2 Viktoria Plzen 1: Benzema and Marcelo´s goals give holders first win in six|
|Lakers´ Rondo denies spitting on Rockets´ Paul|
|Robben and Rafinha want more from Bayern|
|Federer survives Krajinovic scare to maintain Basel run|
|Green accuses NBA of double standards, calls Lakers-Rockets suspensions ´garbage´|
|New York Giants send Apple to Saints|
|Morgan aims to solve Colombo mystery after record ODI defeat|
|AEK Athens 0 Bayern Munich 2: Lewandowski helps to further ease Kovac woes|
|Young Boys 1 Valencia 1: Hoarau penalty denies Marcelino´s men|
|Mourinho walks to Old Trafford as United arrive late again for Champions League|
|Bale and Benzema back for Madrid as Lopetegui rings changes|
|Carr denies ´fractured relationship´ with Raiders team-mates|
|De Bruyne to start for Manchester City against Shakhtar Donetsk|
|France lose Le Roux and Fofana for November Tests|
|Martino to leave Atlanta United amid Mexico links|
|Pochettino cautious over Eriksen return|
|Ancelotti an inspiration for PSG boss Tuchel|
|Persepolis 1 Al Sadd 1 (2-1 agg): Iranians into first AFC Champions League final|
|Wales boss Gatland returns to New Zealand after father´s death|
|Sri Lanka hand England their heaviest ODI defeat|
|Nuggets guard Will Barton undergoes surgery|
|Surprise package Svitolina closes in on semi-final berth|
|Alexander-Arnold targets glory at home and abroad|
|Pogba relishing emotional Juventus reunion|
|Alba hopes Lopetegui keeps Real Madrid job|
|Valverde not expecting Messi magical recovery|
|Wozniacki calms fears over knee injury|
|Maybe it´s my interviews - Klopp on Liverpool´s room for improvement|
|Language no barrier to Dortmund dangermen Reus and Alcacer|
|EPCR confirms no replay of Bath-Toulouse Champions Cup fixture|
|F1 Raceweek: Five the magic number as Hamilton eyes Mexico repeat|
|RFU to introduce in-season breaks for players|
|Nainggolan misses Barcelona trip|
|Wozniacki battles through knee complaint to down Kvitova|
|Alcacer: Two seasons at Barcelona not lost|
|Henderson, Keita to miss Liverpool´s Red Star clash|
|Khabib holds talks over Mayweather Moscow fight|
|Wolf in for Titz as Hamburg try to stop slump|
|Davies released from Wales squad as Evans comes in|
|Mbappe on track to match Messi and Ronaldo, says Giuly|
|Coleman, Kipchoge and Lyles among IAAF Male World Athlete of the Year shortlist|
|Serena Williams will win slams again sooner or later, says Seles|