The Serie A powerhouse have named ex- Azzurri boss the veteran manager to take the helm until the end of the season.
Spalletti steps in for Igor Tudor, who was dismissed post the Lazio setback recently.
The former boss came on board in March to replace Thiago Motta but departed after seven months after an eight-game winless streak.
Spalletti led Napoli to the Serie A title in 2022-23 before taking charge of Italy, which missed out on the 2022 World Cup under former boss Roberto Mancini.
He helped them qualify for Euro 2024 where they were knocked out in the last 16 by Switzerland.
Nonetheless, Italy dismissed Spalletti in June following a loss to Norway in World Cup qualifying, putting Italy in danger of missing a third straight World Cup.
Spalletti has also managed Inter Milan, Roma and Udinese in Serie A and lifted the Russian league trophy twice while at Zenit St Petersburg.
Juventus were temporarily led by Massimo Brambilla in the midweek 3-1 triumph over Udinese moving them to seventh position in the league - six points behind leaders Napoli after nine games.
In the Champions League, they sit 25th in the league phase, having lost once and drawn twice in their opening three matches.