Spalletti was unveiled as Inter Milan manager on Wednesday, having led Roma to third and second-place finishes in Serie A in the past two seasons.
It was his second spell in charge of the capital club but the decision to marginalise veteran forward and modern great Totti became on ongoing saga, even if Roma's results on the field vindicated Spalletti's decision.
Totti made his final Roma appearance on the last day of the season against Genoa, with Spalletti's departure coming the following week as speculation over a move to Inter grew.
"Inter contacted me when I was about to finish the championship," Spalletti told a news conference. "[Roma president James] Pallotta had already been warned by me that I would be gone.
"After the farewell to Roma, this was the best thing that could happen to me. I say this without wanting anyone to take offence.
"In Rome, I had become the one that divided rather than united. There was this problem on the management of Totti.
"I came to see this contrast – the love for the most important player prevailed on the support and affection that we had to have for the team.
"In not being able to put the two things together, I did not do my job well. These two things must go hand in hand.
"I was in trouble because I heard rumours from the fans. I heard them on the streets, in bars, at traffic lights. Many were in favour but there was a line of demarcation.
"They must all be united. I even now wish this to Roma."
Inter finished seventh in Serie A last season, 29 points behind champions Juventus, and Spalletti will embark upon a rebuilding job with the club outside of European competitions.