The Serie A powerhouse have appointed former Azzurri manager Spalletti to take the helm for the rest of the term.
The 66-year-old steps in for Igor Tudor, who was let go following the loss to Lazio on Sunday.
Tudor had joined the club in March as Thiago Motta's replacement 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 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 exiting in the last 16 stage against Switzerland.
Nonetheless, Italy dismissed Spalletti in June following a loss to Norway in World Cup qualifying, putting Italy in danger of missing a third straight World Cup.
Spalletti's managerial career includes Inter Milan, Roma, and Udinese in Serie A and secured two Russian Premier League titles with Zenit St Petersburg.
Massimo Brambilla took interim charge of Juventus during the 3-1 victory over Udinese on Wednesday which left them seventh in Serie A - trailing leaders Napoli by six points after nine matches.
They are 25th in the league phase of the Champions League, having lost once and drawn twice in their opening three matches.