Roma have signed Manchester United defender Chris Smalling on a three-year deal worth 15m euros (£13.6m), rising to 20m euros (£18.1m) with add-ons.
The Italian FA processed the paperwork on the deal with one minute to spare before the transfer deadline in Italy.
Smalling, 30, spent last season on loan at the Italian club and helped Paulo Fonseca's side to a fifth-place Serie A finish and Europa League qualification.
United and Roma had initially struggled to reach an agreement over a fee.
- Transfer deadline day live - all the latest news and moves
- Done deals - all the confirmed moves on deadline day
"Nothing in life worth having comes easy," Smalling told Roma's website.
"My head and my heart has always been in Rome. I am delighted to now be yours. Daje Roma!"
England centre-back Smalling impressed during his stay in Italy last season, making 30 league appearances and scoring three goals.
He has won 31 England caps and played 323 times for Manchester United, where he won two Premier League titles, one FA Cup, a League Cup and the Europa League.
Prior to announcing Smalling's departure, United announced the signing of Brazil left-back Alex Telles on a four-year deal from Porto.
They have also recruited former Paris St-Germain striker Edinson Cavani, and agreed a deal for Atalanta's teenage winger Amad Diallo.
- Me, My Brother and Our Balls: Love Island star Chris Hughes tackles male fertility
- Ghosts are back: New series of the quirky comedy is streaming now