Spain's David Ferrer, the No. 4 seed, staged a furious comeback against countryman Nicolas Almagro and walked away with a 4-6, 4-6, 7-5, 7-6 (7-4), 6-2 win in the quarterfinals of the Australian Open on Tuesday.

Ferrer slugged it out for three hours and 44 minutes with Almagro to advance into his 5th semifinal at a Grand Slam event.

"Winning this match was a miracle. Nicolas had many chances to win. This was unbelievable," Ferrer said.

Ferrer, who played in the Australian Open semis in 2011, has world No. 1 Novak Djokovic up next.

Djokovic beat Czech Tomas Berdych, the No. 5 seed, 6-1, 4-6, 6-1, 6-4.

Almagro, who was trying to make the semifinals at a Grand Slam tournament for the first time, was unable to capitalize on his strong start against Ferrer.

"I took it point by point. I fought for every point. That's my game," Ferrer said.

The Australian Open is the first of four Grand Slam events on the tennis calendar. EFE