BUDAPEST, Hungary — Hungary goalkeeper Gabor Kiraly says he is retiring from the national team after 18 years and a record 107 matches.

Kiraly, known for playing in grey sweatpants in all weather conditions, led Hungary to the round of 16 at the Euro 2016 championships in June.

The 40-year-old Kiraly said on his website that he will continue playing with hometown team Szombathelyi Haladas, but that playing on the national squad was now beyond him physically.

Kiraly said that the lack of rest between the Hungarian championship and the month-long preparations for Euro 2016 and then the tournament tired him.

Kiraly said that "I gave it my all but, in the meantime, my body signalled that this is the limit."

Kiraly broke Jozsef Bozsik's record of 101 matches for Hungary in May.