Perth - Australia's Ricky Ponting on Thursday called time on a 17-year Test career that made him the world's second-highest run scorer, announcing this week's clash with South Africa will be his last.
"I know I have given cricket my all, it's been my life for 20 years. There's not much more I could give," he said at a hastily-called press conference at the WACA ground in Perth ahead of Friday's match.
Ponting, who turns 38 next month, has failed in three innings against the Proteas during draws in Brisbane and Adelaide and pressure has been building on the veteran ahead of the crucial series decider.
VIDEO: Ricky Ponting announces his retirement
Perth will be a fitting place to end a remarkable international career, although Ponting will continue to play for Tasmania in the domestic competition this summer.
It is where he debuted against Sri Lanka in 1995. By playing on Friday, he will equal Steve Waugh's mark of 168 Test matches - the most in the history of Australian cricket.
After being made captain in 2004, right-hander Ponting went on to become one of the country's greatest cricketers, winning more Tests as skipper (48) than any other Australian.
The Tasmanian has 13 366 Test runs to his name, including 41 centuries at an average of 52.21, with only Indian legend Sachin Tendulkar scoring more. But he said he knew it was time to call it a day.
"Over the last couple of weeks my level of performance hasn't been good enough," said Ponting, who had already been dumped from the one-day and Twenty20 international squads.
"My passion and love for the game hasn't changed but at the end of the day (the decision) was based on my results.
"In this series so far they have not been up to the level required of batsmen and players in the Australian team," he added.
"I'm glad I have got the opportunity to finish on my terms."
Ponting insisted the decision was entirely his own and he had not been pushed by selectors. The normally stoic batsman, affectionately known as Punter, said he was highly emotional when he told his team-mates.
"I tried to say a lot but I didn't get much out," he said. "They'd never seen me emotional before, but I was this morning."
Michael Clarke, the current captain, was close to tears following Ponting into the press conference, saying he would be sorely missed and the announcement took him by surprise.
"I didn't have a feeling it was coming," Clarke said of his friend and mentor.
"Ricky spoke to me after Adelaide and obviously made his decision over the last few days.
"The boys (in the team) are obviously hurting right now. He's been an amazing player for a long time."
Clarke said the announcement would only fire up the side to win the third Test, where the number one ranking in Test cricket will be on the line.
"It will only give us more inspiration," he added.
In a statement, Cricket Australia chief James Sutherland described Ponting as one of the best players ever to pad up for his country.
"Ricky has had an extraordinary career and has made an extraordinary contribution, including through the example he has set for other elite players and through the excitement he has given fans, young and old," he said.
"I think his record until he retired as captain was outstanding but my respect for him since then has actually increased, seeing first-hand how he stepped back to become a total team player."
Ponting said he would take time to decide what to do in his Test retirement, but Sutherland said he hoped he would remain connected to the game "in an official capacity".
Factfile on Australia's Ricky Ponting who announced his retirement from Test cricket on Thursday ahead of the coming series decider against South Africa in Perth:
Name: Ricky Thomas Ponting
Right-hand batsman, right-arm medium
Date of birth: December 19, 1974 (Age 37)
Major teams: Australia, Tasmania, Somerset
Test debut: v Sri Lanka, Perth, December 8, 1995
ODI debut : v South Africa, Wellington, February 15, 1995
T20 debut : v New Zealand, Auckland, February 17, 2005
Matches 167, Runs 13,366, Highest 257, Average 52.21, Strike-rate 58.74, Centuries 41
Matches 375, Runs 13,704, Highest 164, Average 42.03, Strike-rate 80.39, Centuries 30
Matches 23, Runs 477, Highest 98 not out, Average 23.85, Strike-rate 121.06.