Rafael Nadal has clinched a record 21st grand slam championship with a stunning comeback victory over Daniil Medvedev in an epic five-set Australian Open final.

The Spanish legend won his first title in Melbourne since 2009 with the 2-6 6-7 (5-7) 6-4 6-4 7-5 victory in five hours and 28 minutes of sublime tennis on Rod Laver Arena on Sunday night.

He surges past Roger Federer and Novak Djokovic in number of major titles.

Nadal was comprehensively outplayed by Medvedev in the first set but started to find his groove in the second.

In a second set marred by a protester who was dragged from the court by security, he had a 4-1 lead in the second set but lost serve in the seventh game.

Rafael Nadal fist pumps during the final.
Rafael Nadal fist pumps during the final. Credit: Dean Lewins/AAP

He broke back immediately, but was himself broken in the subsequent game at 5-4 despite having a set point before Medvedev took the set to a tiebreak.

The tiebreak was an even affair as neither player could get breathing space, until world No.2 Medvedev won the final four points to win 7-5 and take a two-set lead.

The 35-year-old Nadal refused to give up, saving three break points to even the third set at 3-3 and then breaking Medvedev at 5-4 to win the set.

Medvedev began to show signs of physical and mental fatigue, needing physio treatment to his thigh and repeatedly taking aim at the boisterous pro-Nadal Melbourne crowd.

Russia’s Daniil Medvedev celebrates during the Australian Open final.
Russia’s Daniil Medvedev celebrates during the Australian Open final. Credit: Dave Hunt/AAP