Pepe netted his first goal in the top flight on 18 November 2006 in his 23rd appearance in the competition, grabbing the game's only goal at home against former side Palermo in the last-minute, and he helped the Sardinians finally narrowly avoid relegation.