The Serie A powerhouse have appointed previous Italian national team manager Spalletti to take the helm until the end of the season.
Spalletti takes over from Igor Tudor, who was dismissed following the loss to Lazio on Sunday.
Tudor had joined the club in March filling the shoes of Thiago Motta but left after seven months after an eight-game winless streak.
Under Spalletti, Napoli clinched the Serie A championship in 2022-23 before taking charge of Italy, which missed out on the 2022 World Cup under former boss Roberto Mancini.
He secured their spot in Euro 2024 where they were knocked out in the last 16 by Switzerland.
However, Spalletti was sacked by Italy in June after a World Cup qualifying defeat by Norway, as Italy faced the possibility of not making a third World Cup in a row.
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 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, after recording one defeat and two ties in the initial three fixtures.