Juventus have appointed former Azzurri boss Spalletti as their manager until the end of the season.
Spalletti takes over from Igor Tudor, who was let go post the Lazio setback last weekend.
Tudor had joined the club in March as Thiago Motta's replacement but departed after seven months at the end of an eight-match winless run.
Under Spalletti, Napoli clinched the Serie A championship in 2022-23 before taking charge of Italy, after the team's failure to reach the 2022 World Cup during Roberto Mancini's tenure.
He helped them qualify for Euro 2024 where they were knocked out in the last 16 by Switzerland.
However, Spalletti was sacked by Italy in June post a qualifying defeat against Norway, as Italy faced the possibility of not making a third World Cup in a row.
Spalletti has also managed Inter Milan, Roma and Udinese in Serie A and lifted the Russian league trophy twice while at Zenit St Petersburg.
Massimo Brambilla took interim charge of Juventus for their 3-1 win against Udinese on Wednesday placing them seventh in the Serie A standings - trailing leaders Napoli by six points after nine matches.
They are 25th in the league phase of the Champions League, having lost once and drawn twice in their opening three matches.