Ricky Ponting has announced his retirement from Test cricket.
The former Australian captain has underperformed so far this series and confirmed the third Test against South Africa in Perth will be his last.
Ponting told his teammates of his decision on Thursday morning and announced it publicly in a media conference at the WACA.
"Over the last couple of weeks my level of performance hasn't been good enough," he said.
"My passion and love for the game hasn't changed.
"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.
"I'm glad I have got the opportunity to finish on my terms."
Ponting will equal Steve Waugh's mark of 168 Test matches in this match, the most in the history of Australian cricket.
The entire Australian squad turned up for the press conference, as did Ponting's wife Rhianna and his two daughters.
Turning 38 next month, Ponting is the highest Australian run-scorer of all time and has been described as the greatest Australian batsman outside Sir Donald Bradman.
The Tasmanian has 13,336 Test runs to his name, only Indian Sachin Tendulkar has scored more in the history of cricket.
Ponting suggested after the second Test in Adelaide where he made four and 16 that the end might be near, and his fate was now in the hands of selectors.
He will continue to play for Tasmania in the domestic competition for the remainder of the summer.
Ponting said he would in no way be distracted for the series-deciding Test against South Africa where the world No.1 ranking is up for grabs.
"I want this win more than any other game I have played in."
Australian captain Michael Clarke said the announcement gave his side extra incentive to win the third Test.
"It will only give us more inspiration," said an emotional Clarke as he fought back tears.
"He has been a great player for a long time.
Cricket Australia chief executive James Sutherland paid tribute to Ponting's contribution to Australian cricket.
"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," Mr Sutherland said.