NEW YORK (AP) -- Mike Matheny tried all sorts of things to snap the Cardinals out of their hitting funk.
The St. Louis manager let his players show up late to the ballpark. He gave Yadier Molina a rare chance to bat cleanup. He encouraged star Carlos Beltran to swing away at a 3-0 pitch.
Not a whole lot worked, though. Not until Allen Craig provided what any struggling team will always take - a big home run.
Craig hit a tiebreaking, two-run homer in the eighth inning and the Cardinals found a bit of absent pop, beating the New York Mets 5-4 Monday and stopping their season-worst losing streak at five.
The Cardinals have never been swept in a four-game series in New York. The World Series champions had been outscored 19-1 by the Mets and no-hit by Johan Santana before salvaging the finale at Citi Field.
"Doesn't take much. Just a win," Matheny said. "That was much needed, and nobody needed it more than we did. It will change the atmosphere around here. You never know which win will be the one that helps you take off."
St. Louis seemed headed for another rough day at the plate when five of its first seven batters struck out. All told, the Cardinals fanned 41 times in the series.
"Even early on, we started out with a few strikeouts. It's just one of those periods you go through," Matheny said. "You just got to keep working, keep fighting. You've got to trust yourself and, fortunately, we got a couple of big hits when we needed them and that's the thing we were missing."
Pinch hitter Scott Hairston and Lucas Duda homered for the Mets, who missed a chance to move all alone into the NL East lead.
After playing the Mets on Sunday night, Matheny permitted his players to report late on a rainy morning, with most of them getting to the ballpark about two hours before game time.
Craig connected one out after Matt Holliday hit a leadoff single against Jon Rauch (3-5) for a 5-3 lead.
"I knew it was a big hit," Craig said. "We're too talented to stay in a slump too long."
"I don't know if I would say we were antsy," he said. "We have a really good offensive team, but we're not going to go out there and hit every game."
The Mets cut the deficit in the bottom half when Andres Torres hit a long sacrifice fly, but closer Jason Motte retired David Wright on an inning-ending liner to right field with a runner at third base.
Motte finished for his ninth save in 12 chances. Marc Rzepczynski (1-3) wound up with the win despite allowing Hairston's eighth career pinch-hit homer in the seventh, a two-run shot with two outs that made it 3-all.
Cardinals starter Kyle Lohse pitched six sharp innings and allowed only two hits, including Duda's solo homer halfway up the second deck in the fourth.
Dillon Gee limited the Cardinals to Craig's RBI single before his throwing error in the seventh broke a tie game.
"Obviously, it wasn't a no-hitter or another shutout," Gee said. "But I pitched well."
With runners at the corners, no outs and the score 1-all, Gee gloved Daniel Descalso 's comebacker and looked Craig back to third. Gee then tried to start a double play, but bounced his throw into center field and twisted his head in disgust. The go-ahead run scored on the error, and Rafael Furcal 's RBI grounder made it 3-1.
The Cardinals took their first lead of the series in the fourth. Holliday led off with a double, moved up on a groundout and scored when Craig bounced a single through the partly pulled-in infield.
NOTES: Rauch has tenderness in his right elbow and will be checked by a doctor. He has lost five straight decisions... Wright scored his 735th run, tying the Mets record set by Jose Reyes . ... Mets LHP Johan Santana will make his next start Friday night at Yankee Stadium. The Mets wanted to give him extra rest after threw a career-high 134 pitches Friday night in the team's first no-hitter. The NL Player of the Week was scheduled to present the Top Ten list on David Letterman's "Late Show" on Monday night but did not make the appearance because of the team's travel schedule. ... Mets RHP Chris Young , who missed most of last season because of shoulder surgery and has been in the minors this year, is ready to start Tuesday night at Washington. ... OF Jason Bay (broken rib) felt ill and won't rejoin the Mets on Tuesday, manager Terry Collins said. ... Cardinals CF Shane Robinson again was out of the starting lineup. He was scratched Sunday night with a migraine. ... Matheny was eager to see Monday night's MLB draft. His son, Tate, is a CF who led his high school to the state title and is widely regarded as the best prep player in the St. Louis area. ... The Mets swept a four-game series at St. Louis in 1986.