MIAMI — Otto Lopez got his second walk-off hit of the season, a two-out single in the bottom of the ninth to drive in Tim Anderson and the Miami Marlins defeated the St. Louis Cardinals 4-3 on Wednesday.
Lopez's liner off Ryan Fernandez (0-2) was bobbled by right fielder Alec Burleson, but it is doubtful he would have had a play. Tanner Scott (6-5) got the win after pitching a scoreless top of the ninth.
The NL-worst Marlins (25-49) took two of three from the Cardinals, who fell back below .500 at 36-37. All three games were decided in the final at-bat, with St. Louis taking Monday's game 7-6 in 12 innings, with the Marlins winning Tuesday 9-8 in 10.
Lopez had been 0-for-11 in the series before his game-winning hit and 8-for-46 in June.
''It's not been a good series for me, but I told myself to be positive, as positive as I can,'' the second baseman said. Lopez's previous game-ending single came against the New York Mets last month.
Marlins manager Skip Schumaker said he was proud of how his team took the last two games after a crushing loss on Monday and a 1-5 road trip.
''We could have easily folded in Games 2 and 3 after a tough loss the first night against a good Cardinal team, especially after that road trip," Schumaker said. "Credit to those guys. They still come in positive, thinking they are going to win every single day."
Kyle Gibson had been scheduled to start for the Cardinals after being on the bereavement list this week following a death in his family, but was scratched just before game time with back tightness. Manager Oliver Marmol said Gibson locked up as he was stretching.