Roger Federer stepped up his grass game as the start of Wimbledon looms, holding off Australian Matt Ebden 7-6 (7/2), 7-5 in their quarter-final at the ATP Halle tournament on Friday.

He will next take on qualifier Denis Kudla, who scored the best grass victory of his career as he beat Japan’s Yuichi Sugita 6-2, 7-5.

With his world number one ranking on the line, the Swiss is sparing no effort to make sure he lifts a tenth title at the event on Sunday.

Failure to win the grass title would send rival Rafael Nadal back to the top spot.

The first set on Friday was decided in a tiebreaker while the Swiss had to twice recover from a break down in the second to secure a tight victory in 88 minutes.

Federer set up match point with a flicking backhand pass and then sealed his semi-final place as Ebden returned long.

The victory was the 18th in a row on grass for the 36-year-old Federer, who last lost on his favourite surface in an opening match in Stuttgart a year ago, although the 20-time Grand Slam champion atoned last weekend, winning the Stuttgart tournament for the first time.

Now Federer is having to work to win at Halle, the German replica venue which mimics the All England club, and then make his final preparation at Wimbledon itself before that tournament starts on July 2.

Ebden did not make it easy for Federer, staying with the Swiss into the first-set tiebreaker.

The Aussie double-faulted to hand over four set points but one was enough as Federer hit a backhand service return winner.

In the second set, Ebden broke Federer twice and served for the set at 5-4 only for the Swiss to break back for a second time.

After Federer held to love he then broke Ebden again to finish the match by winning four straight games.

American Kudla, ranked 109, had never been past a quarter-final on the lawns - which he achieved at Queen’s club, London five years ago.

Kudla improved to 17-14 on grass over his career as he put out Sugita, the No. 52 who stunned third seed and Roland Garros finalist Dominic Thiem in the second round.

Kudla saved a set point at 5-2 down in the second set and has reached the final four without the loss of a set as he continues the best week of his tennis life at age 25,

Kudla fired his sixth ace on match point to complete his victory in just under 90 minutes, as he broke his Japanese opponent four times.