The Serie A powerhouse have named previous Italian national team manager the veteran manager to lead the team for the rest of the term.
The experienced coach steps in for Igor Tudor, who was let go following the loss to Lazio last weekend.
The former boss came on board in March to replace Thiago Motta but left after seven months after an eight-game winless streak.
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 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.
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 - trailing leaders Napoli by six points after nine matches.
They are 25th in the league phase of the Champions League, with one loss and two draws in their first three games.