England bowler Stuart Broad says he will retire after the conclusion of the fifth Ashes Test at The Oval.
The 37-year-old has taken 602 wickets in 167 Tests, making him the second most successful paceman in Test history behind team-mate James Anderson.
Broad said he made the decision on Friday evening.
"It's been a wonderful ride, a huge privilege to wear the Nottinghamshire and the England badge as much as I have," he told Sky Sports.
"I've been thinking about it for the last few weeks but England v Australia has always been the pinnacle for me.
"I've loved the battles I've had with Australia. I've got a love affair with Ashes cricket and I think I wanted my last bat and bowl to be in Ashes cricket."
England reached 389-9 on day three of the series finale, leading by 377, with Broad batting late in the evening.
If they complete victory over the final two days they will draw the series 2-2, denying Australia a first Ashes win in England since 2001.
Broad has taken 20 wickets in the series, the most by an England player, and has admitted his own surprise at being fit to play in all five Tests which have been played in just six weeks.
He has been one of England's great performers in Ashes cricket, taking a record 151 Test wickets against Australia.
"I'm loving cricket as much as I ever have," Broad said.
"It's been such a wonderful series to be a part of and I've always wanted to finish it at the top.
"This series feels like one of the most enjoyable and entertaining I've been a part of."
'I got emotional when I told Jimmy'
Cook says he feels 'lucky' to have captained BroadBroad made his debut against Sri Lanka in December 2007. Last week, during the fourth Ashes Test in Manchester, he became just the second pace bowler after Anderson to take 600 Test wickets.
He and Anderson, who has ignored calls to retire himself, are the most successful bowling partnership in Test history.
"He just said 'are you joking?'," Broad told BBC Test Match Special, after being asked when he gave Anderson the news.
"We then had a hug. It is always hard.
"When I spoke to Jimmy I got a bit emotional. But ultimately we have a game to win here. We can do the reminiscing afterwards if we get the job done."
After defeat in the 2021-22 Ashes series in Australia, Broad and Anderson were dropped for a tour of West Indies in the spring of last year but were then recalled when captain Ben Stokes and coach Brendon McCullum took over.
"I told Stokesy [England captain Ben Stokes] last night and told the changing room this morning and to be honest, it felt the right time," Broad said.
"I have thought a lot about it and even up until 8 o'clock last night I was - I wasn't 50/50 - but I was a little bit unsure.
"But once I went to Stokesy's room and told him I felt really happy.
"I feel really content with everything I have achieved in the game and ultimately the decision came down to I knew I wanted to leave the game loving cricket and my last memories being a really enjoyable changing room."
An England great retires
Broad also played 121 one-day internationals and 56 T20s - leading the T20 side between 2011 and 2014 - although has solely played the Test format since 2016.
He took 8-15 at Trent Bridge against Australia in 2015 - one of a number of superb wicket-taking spells that have defined his career.
He also took 5-5 in just 5.1 overs against India at the same ground in 2011, including his first Test match hat-trick as MS Dhoni, Harbhajan Singh and Praveen Kumar fell in successive deliveries.
Against South Africa in 2016, he claimed a remarkable 5-1 in 31 balls.
Broad 'delivered' in the 'big moments'
Speaking on Test Match Special, Sir Alastair Cook, Broad's former England captain, paid tribute to the bowler's ability to perform on the biggest stage.
"I'm a bit emotional," said Cook, who played 123 times with Broad in Tests.
"You always get questioned about heart and whether you're good enough in big moments.
"The one player to deliver, alongside Ben Stokes, in the big moments is Stuart Broad. And what a feeling that must be for a player."
Michael Vaughan was England captain when Broad made his debut.
He said: "I have nothing but a huge amount of respect.
"I remember when he first came into the England side, he was just different. He wanted to captain himself, thinking about the game all of the time.
"If there has been a bit of niggle or a hot moment in the game, it has always been when Stuart has been around. He has been fantastic for the England side."
Richard Gould, chief executive of the England and Wales Cricket Board (ECB), paid tribute to Broad, calling him "quite simply one of England's all-time greats".