Reigning champion Novak Djokovic survived a scare to beat Ukrainian Alexandr Dolgopolov in three sets to reach the Miami Open quarter-finals.
The Serb lost the first set on a tie-break and trailed 4-2 in the second but recovered to win 6-7 (3-7) 7-5 6-0.
The world number one now faces Spain's David Ferrer, who saw off Frenchman Gilles Simon 7-6 (7-5) 6-0.
Earlier, Britain's Andy Murray recorded his 500th career win beating South African Kevin Anderson 6-4 3-6 6-3.
The Scot now faces Austrian Dominic Thiem, who beat Adrian Mannarino 7-6 (7-5) 4-6 7-5.
Also through to the quarters is fourth seed Kei Nishikori after he made light work of David Goffin 6-1 6-2.
The Japanese player will now face American John Isner, who upset fifth seed Milos Raonic 6-7 (3-7) 7-6 (8-6) 7-6 (7-5).
Tomas Berdych reached his sixth quarter-final of the season after Frenchman Gael Monfils retired after falling heavily while trailing 3-6 2-3.
The Czech now faces unseeded Argentinian Juan Monaco, who had a 6-3 6-3 victory over Fernando Verdasco.
In the women's draw, Carla Suarez Navarro lost the first set 6-0 but hit back to see off Venus Williams 0-6 6-1 7-5 and reach the semi-finals.
The Spaniard now faces ninth seed Andrea Petkovic after the German beat Karolina Pliskova of the Czech Republic 6-4 6-2.