Juventus have chosen previous Azzurri head coach the veteran manager to lead the team for the remainder of the campaign.
The 66-year-old replaces Igor Tudor, who was sacked post the Lazio setback on Sunday.
Tudor arrived at the club in March filling the shoes of Thiago Motta but departed 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 with Mancini at the helm.
He helped them qualify for Euro 2024 but were eliminated in the round of 16 by Switzerland.
However, Spalletti was sacked by Italy 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 lifted the Russian league trophy twice while at Zenit St Petersburg.
Juventus were temporarily led by Massimo Brambilla during the 3-1 victory over Udinese on Wednesday which left them seventh in Serie A - six points adrift of Napoli at the top after nine rounds.
They are 25th in the league phase of the Champions League, after recording one defeat and two ties in the initial three fixtures.