The Old Lady have chosen previous Azzurri boss Spalletti to take the helm for the rest of the term.
Spalletti steps in for his predecessor, who was sacked after the Serie A side's defeat by Lazio last weekend.
The former boss came on board in March to replace Thiago Motta but departed after seven months at the end of an eight-match winless run.
Spalletti guided Napoli to the Serie A crown in 2022-23 before taking charge of Italy, who had failed to qualify for the 2022 World Cup with Mancini at the helm.
He helped them qualify for Euro 2024 exiting in the last 16 stage against Switzerland.
Nonetheless, Italy dismissed Spalletti 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.
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 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.
In the Champions League, they sit 25th in the league phase, having lost once and drawn twice in their opening three matches.