The Serie A powerhouse have chosen ex- Azzurri boss the veteran manager to take the helm until the end of the season.
The 66-year-old takes over from Igor Tudor, who was sacked following the loss to Lazio on Sunday.
The former boss came on board in March as Thiago Motta's replacement but exited following a seven-month stint after an eight-game winless streak.
Spalletti led Napoli to the Serie A title in 2022-23 then moving on to lead the Italian national team, which missed out on the 2022 World Cup under former boss Roberto Mancini.
Under his guidance, they made it to Euro 2024 but were eliminated in the round of 16 by Switzerland.
Nonetheless, Italy dismissed Spalletti in June following a loss to Norway in World Cup qualifying, with the Azzurri at risk of missing out on a third consecutive 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.
Massimo Brambilla took interim charge of Juventus for their 3-1 win against Udinese on Wednesday which left them seventh in Serie A - trailing leaders Napoli by six points after nine matches.
Their Champions League campaign sees them in 25th place in the group stage, with one loss and two draws in their first three games.