The Old Lady have chosen previous Italy boss the veteran manager to lead the team until the end of the season.
The 66-year-old steps in for his predecessor, who was let go after the Serie A side's defeat by Lazio on Sunday.
The former boss came on board in March filling the shoes of Thiago Motta but departed after seven months following a string of eight matches without a victory.
Spalletti guided Napoli to the Serie A crown in 2022-23 before taking charge of Italy, which missed out on the 2022 World Cup during Roberto Mancini's tenure.
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's managerial career includes 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 during the 3-1 victory over Udinese on Wednesday which left them seventh in Serie A - six points behind leaders Napoli after nine games.
In the Champions League, they sit 25th in the league phase, with one loss and two draws in their first three games.