Fernando Torres scored twice as Liverpool held off a brave fightback from West Ham to earn a deserved 3-2 victory at Upton Park.
Torres put the Reds in front in the 19th minute with a fine solo goal but debutant Alessandro Diamanti levelled from the penalty spot.
Dirk Kuyt restored Liverpool's lead in the 40th minute but Carlton Cole levelled again a minute before the interval.
But the irrepressible Torres settled a pulsating contest when he headed home from close range in the 75th minute.
The victory, Liverpool's fourth successive win, lifted Rafael Benitez's side into third place in the Barclays Premier League and left West Ham in 14th.