The Hammers traveled to Merseyside in the hope of causing an upset, but Brendan Rodgers' men leapfrogged their opponents with an impressive win.
After a quiet first half, Liverpool took the lead early into the second period, with Raheem Sterling opening the scoring on 51 minutes.
Sterling latched on to a dinked through ball by Philippe Coutinho, and passed the ball underneath West Ham goalkeeper Adrian to put Liverpool ahead.
Then, the moment Liverpool fans had been waiting for finally arrived; Daniel Sturridge made his return from injury, and he did so with a bang.
Coutinho was the provider again, threading a delicate ball into Sturridge's path, and the England international drove the ball into the back of the net.
The Reds are finally moving in the right direction this season, and Sturridge's return is a huge boost after this 2-0 win.