ST. LOUIS -- The Miami Marlins were down to their final strike on Saturday, but still had enough to come back and beat the St. Louis Cardinals.

The Marlins were losing, 5-4, before Casey McGehee capped an 11-pitch at-bat with a single to right to score Donovan Solano from first base to tie the game, and McGehee later scored on a pinch single by Jeff Baker for a 6-5 victory.

The Marlins claimed their 15th comeback victory this season, but their first when trailing after eight innings. They had been 0-38 in those situations before Saturday.

The Cardinals' bullpen nursed the 5-4 lead from the sixth inning on, but could not get the final out it needed.

Randy Choate got the first out in the ninth, before Trevor Rosenthal relieved and allowed a single by Solano. Rosenthal then struck out Giancarlo Stanton, bringing McGehee to the plate.

The Cardinals had built the lead with a four-run fourth. Allen Craig followed an RBI single by Matt Holliday with a two-run home run off Andrew Heaney.

Craig's homer, which put the Cardinals up, 4-1, was his first since May 29, ending a drought of 124 at-bats, and also was the Cardinals' first home run at home since a leadoff homer by Matt Carpenter on June 18, a span of 192 at-bats.

It took only two pitches for the next home run, Jhonny Peralta's 13th of the season, to increase the lead to 5-1.

Those were the first back-to-back homers by the Cardinals, who have only 51 home runs this season, the fewest in the majors -- since June 30 of last year, when Carlos Beltran and Craig went back-to-back.

The Marlins cut the lead to 5-4 in the sixth. Shelby Miller allowed two hits in the inning, before Seth Maness relieved and gave up a three-run home run to Christian Yelich .

NOTES: The Cardinals expect 2B Kolten Wong to come off the disabled list before Sunday's game. He was scheduled to play the fourth game of a rehab assignment at Triple-A Memphis on Saturday. He was 5-for-11 in his first three games. ... LHP Jaime Garcia, also on the disabled list, said Saturday that his latest shoulder injury has been diagnosed as thoracic outlet syndrome. He told the media he was trying to rule out all other options before making a decision to have surgery, but general manager John Mozeliak said Garcia had told the Cardinals medical staff he will have surgery, which would be his fourth operation, and the third on his left shoulder. ... Miami SS Adeiny Hechavarria is expected to be activated off the disabled list on Sunday and meet the Marlins Monday in Arizona. He was 0-for-4 in a rehab start Friday night for Class-A Jupiter. ... RHP Henderson Alvarez is scheduled to pitch the final game of the series against the Cardinals on Sunday, while rookie LHP Marco Gonzalez will make his third start for St. Louis.