Roma have confirmed Francesco Totti will remain at 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.
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.
Get the best features, fun and footballing frolics straight to your inbox every week.
Thank you for signing up to Four Four Two. You will receive a verification email shortly.
There was a problem. Please refresh the page and try again.