The Serie A powerhouse have chosen former Azzurri head coach the veteran manager as their manager for the rest of the term.
Spalletti takes over from Igor Tudor, who was let go after the Serie A side's defeat by Lazio recently.
Tudor arrived at the club in March as Thiago Motta's replacement but departed after seven months at the end of an eight-match winless run.
Under Spalletti, Napoli clinched the Serie A championship in 2022-23 before taking charge of Italy, which missed out on 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 post a qualifying defeat against Norway, 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 won the Russian Premier League twice with Zenit St Petersburg.
Juventus were temporarily led by Massimo Brambilla 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.
They are 25th in the league phase of the Champions League, after recording one defeat and two ties in the initial three fixtures.