Rafael Nadal is out of the Australian Open after retiring in the fifth set of his quarterfinal match with Marin Cilic with an upper right leg injury.

Cilic had won the first two games of the final set when Nadal, who had taken a medical timeout in the fourth set to have his right leg and thigh massaged, called it quits after shaking the hand of the umpire.

READ MORE: State Fair Taking Extra Measures To Keep Guests Safe

Cilic beat Nadal 3-6, 6-3, 6-7 (5), 6-2, 2-0 retired.

READ MORE: Officials: Man Suspected Of Making Threats Against Texas Lawmakers Arrested

Cilic will play Kyle Edmund in the semifinals. The 49th-ranked British player beat Grigor Dimitrov in four sets earlier Tuesday.

MORE NEWS: State Fair Offers Hundreds Of Free Acts, Shows And Exhibits

(© Copyright 2018 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)