The Serie A powerhouse have chosen former Italy manager Spalletti to lead the team for the remainder of the campaign.
The 66-year-old replaces Igor Tudor, who was sacked post the Lazio setback on Sunday.
Tudor had joined the club in March as Thiago Motta's replacement but departed after seven months at the end of an eight-match winless run.
Under Spalletti, Napoli clinched the Serie A championship in 2022-23 before taking charge of Italy, who had failed to qualify for 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.
Yet, the Italian FA let Spalletti go 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 won the Russian Premier League twice with 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.
Their Champions League campaign sees them in 25th place in the group stage, with one loss and two draws in their first three games.