(CNN) -- Giampaolo Pazzini scored both goals as Sampdoria beat AS Roma 2-1 on Sunday to dent the capital side's Serie A title hopes.
Sampdoria trailed at halftime, but hit back after the break to end Roma's 24-match unbeaten run in the league.
It dropped Claudio Ranieri's men to second, two points behind reigning champions Inter Milan, who beat Atalanta 3-1 on Saturday.
Samp also did themselves a favor in the battle for the fourth and final Champions League slot, moving two points ahead of Palermo, who beat AC Milan 3-1 on Saturday.
Roma were in superb form in the first half and deservedly took the lead in the 14th minute through captain Francesco Totti.
He shot home after a cross from Mirko Vucinic on the left.
Soon afterwards it was almost two as Vucinic set Totti away and his shot hit the post.
But Sampdoria equalized soon after the restart as former Roma forward Antonio Cassano crossed for Pazzini to head home.
Roma brought on former World Cup hero Luca Toni and he went close, but they were soon behind to a counterattack as Daniele Manini crossed for Pazzini to net his second.
Earlier on Sunday, Juventus kept up their bid for a Europa League place with a 3-0 win over Bari in Turin.
Vincenzo Iaquinta scored twice after the break with Alessandro Del Piero also on target with a penalty.
Livorno became the first club to be relegated this season despite a 3-1 win at home to Catania while Siena are also down bar a miracle after their 4-1 defeat at Udinese.