


On 18 August 2004, Ibrahimović injured fellow Ajax teammate Rafael van der Vaart during an international match against the Netherlands, which led to accusations from van der Vaart that Ibrahimović had hurt him intentionally. This led to Ibrahimović's sudden sale to Juventus on 31 August.

The following season was poor compared to his first season; his role in Juventus' attack changed, as he became less of a goalscorer and moved more to the sidelines, taking much part in the build-up play, especially as a target player, and his assist numbers increased. In the 2005–06 season, Juventus fans often got frustrated with him due to his anonymous presence in certain important games such as the Champions League defeat to Arsenal. Juventus were stripped of their last two Scudetti as part of the verdict from the Calciopoli scandal, and were relegated to Serie B. The new staff tried to persuade Ibrahimović and other top players to stay with Juventus, but the player and his agent were adamant to move on, with Raiola threatening legal action in order to extricate Ibrahimović from his contract.
Ibrahimović played his 100th Serie A match on 16 September 2007. His contract was renewed in 2007, it was due to expire in June 2013.He was estimated as the top of footballer wages. He scored two Champions League goals in the group stage against PSV on 2 October, which marked his first European goals since December 2005 and his first goals overall in an Inter jersey, and finished with five goals in seven Champions League matches. Against Parma in the final league matchday on 18 May 2008, he returned from a chronic knee injury and scored both goals as Inter won 2–0, clinching their third straight Scudetto.

Ibrahimović's 2008–09 season started brilliantly, hitting the back of the net in Inter's first league match. His goal against Bologna was voted "Goal of the Year". He scored it with his heel without moving and accurately into the net from a cross by Adriano. Ibrahimović's form in the season had been eye-catching, with clever movement on and off the ball, and his passing had been outstanding, such as his acrobatic pass against Lazio. He ended a month long goal drought against Genoa, handing them their first home loss of the season, making Inter the only team not to lose at home in the league. In the final league game of the season, Ibrahimović scored twice against Atalanta, securing the Capocannoniere for himself by finishing one goal ahead of Marco Di Vaio and Diego Milito with 25 goals in the domestic season.