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: 16-Year-Old Shot To Death Outside Hurricane Harbor In Arlington

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

READ MORE: Community Groups Want To Help Reduce Violent Crime In Dallas

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

MORE NEWS: Eye On Culture: Dallas Holocaust And Human Rights Museum Fulfilling Its Mission To Educate

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