The Serie A powerhouse have chosen former Azzurri head coach Spalletti to lead the team until the end of the season.
The 66-year-old steps in for Igor Tudor, who was let go following the loss to Lazio on Sunday.
The former boss came on board in March as Thiago Motta's replacement but departed after seven months following a string of eight matches without a victory.
Under Spalletti, Napoli clinched the Serie A championship in 2022-23 prior to assuming the Italy role, after the team's failure to reach 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.
Nonetheless, Italy dismissed Spalletti in June post a qualifying defeat against Norway, 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.
Massimo Brambilla served as interim manager for Juventus during the 3-1 victory over Udinese on Wednesday which left them seventh in Serie A - six points adrift of Napoli at the top after nine rounds.
They are 25th in the league phase of the Champions League, after recording one defeat and two ties in the initial three fixtures.