Rafael Nadal gives a farewell speech after his Madrid Open exit. GETTY IMAGES

After defeat to Jiri Lehecka in his final Madrid Open at La Caja Magica, Rafael Nadal was treated to a farewell ceremony featuring highlights of his five titles in the Spanish capital with the home fans cheering his name late into the night.

It was past midnight when the 30th seed from Czechia closed out victory 7-5, 6-4 victory for the biggest win of his career. The 37-year-old superstar fought hard and produced some trademark forehand winners in the second set as he was serenaded by chants of "Sí, se puede!" (Yes, we can!). However, he was unable to break the powerful serve of his younger opponent.

After Lehecka waved to the crowd, he took a seat as Nadal - who has yet to confirm whether he will attempt to win a 15th French Open title at Roland Garros later this month - addressed his devoted supporters. He said, "I'm happy. It was a very special week for me, very positive and very emotional. I had the opportunity to play one more time here on this court."

There followed a farewell ceremony celebrating Nadal's career and his five titles in Madrid. Even Lehecka looked emotional as highlights were played out on the big screen although there was a comedic moment as the first of five banners marking Nadal's titles became stuck as it was being suspended from the roof.

The banners, when they did finally fall correctly, spelt out the words "Gracias Rafa" with Nadal making a speech which left many inside the Manolo Santana Stadium - including family and friends - struggling to hold back tears.

Rafael Nadal's mother Ana Maria Parera (L), sister Maria Isabel Nadal (C), and wife Maria Francisca Perello (R) listen to his farewell speech. GETTY IMAGES
Rafael Nadal's mother Ana Maria Parera (L), sister Maria Isabel Nadal (C), and wife Maria Francisca Perello (R) listen to his farewell speech. GETTY IMAGES

The 22-time Grand Slam winner said, "Thank you to everyone that has helped me in my career. It hasn't finished yet. It's a gift what you've given me here. The emotion that I get from this experience in Madrid, from the Spanish public... I was lucky as a child to do the job that I love. I feel super fortunate to have lived the life that I've lived. I couldn't ask for anything more."

Lehecka will meet Daniil Medvedev in the quarter-finals on Thursday, with Spain's hopes now resting solely on the shoulders of Carlos Alcaraz. The defending champion faces Andrey Rublev on Wednesday.