The Serie A powerhouse have named ex- Italian national team manager the veteran manager as their manager for the remainder of the campaign.
Spalletti replaces Igor Tudor, who was sacked following the loss to Lazio last weekend.
Tudor arrived at the club in March as Thiago Motta's replacement but left after seven months following a string of eight matches without a victory.
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 with Mancini at the helm.
He secured their spot in Euro 2024 but were eliminated in the round of 16 by Switzerland.
Nonetheless, Italy dismissed Spalletti in June post a qualifying defeat against Norway, 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 for their 3-1 win against Udinese on Wednesday placing them seventh in the Serie A standings - trailing leaders Napoli by six points after nine matches.
In the Champions League, they sit 25th in the league phase, with one loss and two draws in their first three games.