The Old Lady have chosen former Italian national team head coach the veteran manager to lead the team until the end of the season.
Spalletti steps in for Igor Tudor, who was let go post the Lazio setback recently.
The former boss came on board in March filling the shoes of Thiago Motta but exited following a seven-month stint 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 won the Russian Premier League twice with Zenit St Petersburg.
Juventus were temporarily led by Massimo Brambilla for their 3-1 win against Udinese on Wednesday which left them seventh in Serie A - six points behind leaders Napoli after nine games.
They are 25th in the league phase of the Champions League, having lost once and drawn twice in their opening three matches.