During the 2004–05 season, Capello finally left Roma – for Juventus – and, while the "giallorossi" had a disastrous season, Montella scored 23 goals and earned a new contract lasting until 30 June 2010, also helping Roma to the Coppa Italia final that season. In the 2005–06 season, he was again plagued with injuries. He underwent surgery on both his back and shoulder, limiting him to just 12 games. In January 2007, during the 2006–07 season he was loaned to Fulham because Francesco Totti was the lone forward in new head coach Luciano Spalletti's 4–2–3–1 formation, while Montella wanted to have more chances to play.