The Serie A powerhouse have appointed ex- Italy manager Spalletti to take the helm for the remainder of the campaign.
The experienced coach replaces Igor Tudor, who was let go following the loss to Lazio last weekend.
Tudor had joined the club in March to replace Thiago Motta but left after seven months following a string of eight matches without a victory.
Spalletti guided Napoli to the Serie A crown in 2022-23 then moving on to lead the Italian national team, after the team's failure to reach the 2022 World Cup under former boss Roberto Mancini.
He helped them qualify for Euro 2024 exiting in the last 16 stage against Switzerland.
However, Spalletti was sacked by Italy in June after a World Cup qualifying defeat by Norway, with the Azzurri at risk of missing out on a third consecutive 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.
Juventus were temporarily led by Massimo Brambilla for their 3-1 win against Udinese on Wednesday which left them seventh in Serie A - trailing leaders Napoli by six points after nine matches.
Their Champions League campaign sees them in 25th place in the group stage, having lost once and drawn twice in their opening three matches.