Wigan ended a run of six Barclays Premier League games without a win with their first home victory of the season as goals from Ivan Ramis and James McArthur secured a 2-1 triumph over West Ham.
The visitors went into the match in much the better form but were behind in the eighth minute courtesy of a fine finish from centre-back Ramis.
McArthur doubled Wigan's advantage with his first goal of the season just after the break, and James Tomkins' injury-time header came too late for the Hammers.
The hosts who took the lead in fine style in the eighth minute when defender Ramis met Jean Beausejour's corner with a perfect volley that flew past Jussi Jaaskelainen.
Wigan were enjoying themselves and Andy Carroll was called upon in defence in the 31st minute, heading away from just in front of the post as Beausejour let fly.
West Ham had offered little since their initial flurry but they broke down the other end and Matt Jarvis bent in a cross that just eluded Yossi Benayoun and forced Ali Al Habsi to push the ball behind.
It was the hosts who ended the first half better, though, with strikers Franco Di Santo and Arouna Kone causing problems, and they doubled their lead less than two minutes into the second half.
West Ham were the architects of their own downfall as a poor Jaaskelainen clearance was seized on by Wigan and Shaun Maloney teed up McArthur, who drilled in their second.
The Hammers did almost break through in the 90th minute, however, Jarvis picked out Tomkins at the back post and his shot was deflected onto the bar by Gary Caldwell.
And two and a half minutes into injury time the defender did get on the scoresheet, heading in George McCartney's cross, but it was too late to affect the result as West Ham suffered only their third defeat of the season.