Simona Halep of Romania reacts during her match against Polona Hercog of Slovenia during Day 7 of the Miami Open Presented by Itau at Hard Rock Stadium.
The 27-year-old lost her place at the top of the women's game following Naomi Osaka's triumph at the Australian Open earlier this year.
But with the Japanese faltering here on Saturday, Halep can return to the position she last held at the end of 2018 if she lands the Miami Open for the first time.
The Romanian, who will also move up the to the top of the rankings if she reaches the final and Petra Kvitova doesn't win the title, will certainly have to put in a better display than the patchy performance which eventually sent the gutsy Hercog, the world number 93 from Slovenia, out.
"She played unbelievable and it was such a tough match," said Halep, who belted 48 winners compared to her opponent's 38 but won just 31% of points on her first serve.
"It was good to play for almost three hours though. I slowly found my rhythm but I always had belief so if I can keep doing this, I will have a good tournament.
She next faces seven-time Grand Slam champion Venus Williams, who swept past Russian Daria Kasatkina 6-3, 6-1.
Halep, the 2018 French Open champion and current world number three, arrived in Miami having failed to get past the round of 16 in Indian Wells and the quarter-finals in Dubai.
She started sluggishly on the center court at Hard Rock Stadium, where Hercog moved into an early 3-1 lead.
Halep finally broke back for 4-4 but another sloppy game handed Hercog the opportunity to grab a first set lead which she duly took.
Simona Halep of Romania returns a shot to Polona Hercog of Slovenia during Day 7 of the Miami Open Presented by Itau at Hard Rock Stadium.
Halep was far more solid in the second, despite missing the chance to draw level when she was broken serving at 5-3 and Hercog kept her nerve make it 5-5.
As the clock ticked past two hours, a brilliant drop shot by Hercog ensured a second set tie break only for Halep to emphatically win it 7-1 before the decider was sealed for the Romanian when she held to love after 2 hours and 50 minutes.
On the men's side, defending champion John Isner blew Spain's Albert Ramos-Vinolas off court with serves touching 139 mph as the American sealed an ultimately comprehensive 7-5, 7-6 (8-6) win.
He was broken in the very first game but responded by hitting a total of 16 aces to set up an intriguing match with Kyle Edmund in the last 16 after the British number one impressively saw off Canadian Milos Raonic 6-4 6-4.
"I did a lot of things well," Isner said. "I played a good first set, even though I didn't start it off well. In the second, it wasn't quite as clean. But I'm into the Round of 16 of a big tournament and I'm happy."
The 37-year-old Swiss can clinch a record-extending 21st major if he manages to break free of the world number one's stranglehold.
Tennis star Serena Williams has revealed that she has apologised to Japan's Naomi Osaka who defeated her in the finals of the US Open last year.
Nadal emerged triumphant that day, winning in five sets in a four-hour 48-minute epic of fluctuating fortunes that stretched out over seven hours because of constant, momentum-shifting rain interruptions.
"The decision has been taken to ensure protection of all the Race's participants," said the Higher Organising Committee, adding that "safety comes at the top of all priorities."
Stefanos Tsitsipas defeated Germany’s Jan-Lennard Struff 4-6, 6-4, 6-4 on Thursday to set up a Dubai Championships semi-final against Dan Evans.
Defending champions Quetta Gladiators produced a stunning run-chase to defeat Islamabad United by five wickets in the first-ever HBL Pakistan Super League