John O'Shea has announced he will retire from international football with the Republic of Ireland's friendly against the United States on June 2 serving as his farewell game.
The 37-year-old has won 117 caps for his country since making his debut in 2001 and played in two European Championships.
"After 22 years of representing my country (17 at senior level) it is with great sadness & joy that I will be pulling on the Republic of Ireland jersey for the last time on the 2nd of June in the Aviva Stadium," he said in a statement.
"It has been an amazing journey but I feel now is the right time to step aside for the next generation to enjoy the experiences I am so humbled to have been part of."
Ireland manager Martin O'Neill saluted O'Shea by saying: "John has had a great career internationally and played at the very top at club level with Manchester United, where he won a lot of trophies.
"For any player to get over 100 caps is a magnificent feat and he can be very proud of that achievement. I will always remember John's goal away to Germany in Gelsenkirchen. He doesn't score too many goals so that made it even more special.
"I wish John the very best for the future and I'm sure he will become an excellent coach. And if he wants to I'm sure he has the capabilities of becoming a manager too."
O'Shea started 111 of his 117 senior appearances - winning 46 of them - and appeared in six UEFA European Championship games. He is currently the third most capped men's player behind Shay Given and Robbie Keane.