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.
|Ederson taking goalkeeping to another level, says City hero Weaver|
|Ceferin dismisses "super league" plans as fiction|
|Rams defeat Chiefs in one of the highest scoring games in NFL history|
|Kemba Walker leads Hornets to win over Celtics|
|Gomez praises ´top player´ Van Dijk, Stones|
|Cricket Australia to maintain Smith, Warner ball tampering bans|
|Brazil´s Tite encouraged by Neymar captaincy|
|Holmes set for NFL switch after Cronulla release|
|Dier encourages English youngsters to follow Sancho´s lead|
|Southgate promises further changes to England squad|
|Jones sceptical over Pocock injury|
|Sane encouraged despite Germany´s ´annoying´ Nations League draw|
|Character got Netherlands through, says Koeman|
|Netherlands´ focus still on Euros - Van Dijk|
|Ireland will be ready for qualifiers, insists O´Neill|
|Smith undergoes successful surgery, Redskins sign Sanchez|
|Germany 2 Netherlands 2: Dramatic five-minute fightback seals Oranje progression|
|Denmark 0 Republic of Ireland 0: Thrills at a premium again in Aarhus|
|O´Brien could return for start of Six Nations|
|Cavani: Neymar and I are ´friends, brothers, team-mates´|
|Pothas named Windies interim head coach|
|LA Galaxy planning for Ibrahimovic stay|
|NFL will return to Mexico City in 2019|
|Broner vows to end Pacquiao´s career in Las Vegas|
|UEFA should punish PSG and Man City, says LaLiga chief|
|Teenage driver Floersch has ´no fear of paralysis´ after operation|
|Mancini bemoans Italy´s misfortune in front of goal|
|Sprint legend Johnson ´pretty much back to normal´ after stroke|
|Bournemouth defender Adam Smith out for three months|
|World champions France out to end 2018 on a high|
|I told him there´s no future in football! A-Rod relieved to be ignored by Mahomes|
|Dembele must focus and be more responsible - Suarez|
|Neymar could return one day – Barca chief|
|Cole backs West Ham to keep Arnautovic|
|Injury rules Bernardo Silva out of Poland clash|
|Lamar Jackson debut start ´spectacular´ - Ravens coach Harbaugh|
|Babar run out the turning point, laments Sarfraz|
|West Ham boost London Stadium capacity to 60,000|
|A great advertisement for Test cricket - Williamson revels in stunning win|
|Van Dijk one of the world´s best - Klaassen|
|Floersch had ´angel on her shoulder´ in horror crash|
|Gascoigne charged with sexual assault|
|I am going to stay at Chelsea and fight, insists Giroud|
|Hansen to make announcement on All Blacks future|
|I have reached the top by joining Chelsea - Sarri|
|Bonucci tells Italy boo boys to ´live with less envy´|
|Dramatic Pakistan collapse gives Stead first New Zealand Test win|
|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|