Roma have confirmed Francesco Totti will play for the club for “one last season” after agreeing to extend his contract for another year.
Totti, who turns 40 in September, had been linked with an exit from the Stadio Olimpico, with his contract initially due to expire this month.
However, Roma have moved to retain the services of their captain for another season.
“I really desired this contract, which is the realisation of my dream,” Totti told Roma TV.
“I always hope to end my career having worn a single shirt, that of Roma.
“After speaking with the president [James Pallotta] I am even more convinced that by remaining united we can achieve great things.”
Totti joined Roma as a 12-year-old in 1989 and, since making his debut in 1993, has made 758 appearances in all competitions and scored 304 goals – both of which are club records.
Following the completion of his 25th season for Roma, the club captain will stay on as technical director for a minimum of six years.
“I’m delighted, because after this year as a player I have another six as a director,” he told Roma TV.
“As I’ve always told the president and the club as a whole, I preferred to have a specific role such as technical director. They’ve agreed to that and I’m very grateful for it.”
President Pallotta lauded the signing of his contract as a symbolic moment on the club’s 89th anniversary.
“It’s quite fitting that on the anniversary of the day AS Roma was founded, Francesco Totti has signed a new playing contract,” he added.
“No one has played more games or scored more goals for this football club than Francesco Totti and we’re delighted that he will continue for one more season.
“He’s earnt this contract and now we want Francesco’s final season on the pitch to be the start of a new era of success for Roma.”
The veteran forward’s future looked uncertain following the appointment of Luciano Spalletti as head coach in January.
Totti dismissed reports of a rift between the pair amid a lack of game time in April and called for a united front as Roma mounted a successful charge for Champions League football by finishing third in Serie A.