The Serie A powerhouse have named previous Italy manager Spalletti to take the helm for the rest of the term.
The 66-year-old replaces the Croatian manager, who was dismissed after the Serie A side's defeat by Lazio last weekend.
The former boss came on board in March to replace Thiago Motta but left after seven months at the end of an eight-match winless run.
Spalletti led Napoli to the Serie A title in 2022-23 then moving on to lead the Italian national team, which missed out on 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 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 won the Russian Premier League twice with Zenit St Petersburg.
Massimo Brambilla served as interim manager for 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.