The Old Lady have named previous Italy head coach the veteran manager to lead the team for the remainder of the campaign.
The 66-year-old takes over from Igor Tudor, who was let go following the loss to Lazio last weekend.
Tudor arrived at the club in March filling the shoes of Thiago Motta 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 before taking charge of Italy, after the team's failure to reach the 2022 World Cup under former boss Roberto Mancini.
He secured their spot in Euro 2024 but were eliminated in the round of 16 by Switzerland.
However, Spalletti was sacked by Italy in June following a loss to Norway in World Cup qualifying, as Italy faced the possibility of not making a third World Cup in a row.
He has previously coached Inter Milan, Roma, and Udinese in Italy's top flight and lifted the Russian league trophy twice while at Zenit St Petersburg.
Massimo Brambilla served as interim manager for Juventus for their 3-1 win against Udinese on Wednesday which left them seventh in Serie A - six points adrift of Napoli at the top after nine rounds.
In the Champions League, they sit 25th in the league phase, with one loss and two draws in their first three games.