Nine-Tails Unleashed!

is episode 40 of the Naruto: Shippūden anime.

Synopsis
Yamato signals Naruto, Sakura and Sai to appear on the bridge. On seeing Naruto, Orochimaru begins mocking him and compares him to Sasuke, which causes the Nine-Tails' chakra to leak from an enraged Naruto's body and ascends him to a three-tailed form. Meanwhile, Yamato remembers Jiraiya speaking of the appearance of number of tails on Naruto during their training, and had specifically warned of Naruto's four-tailed form.