Joe Mack scored on a ninth-inning error after a two-out double, helping Miami avoid a sweep and end a four-game skid.
Joe Mack scored the winning run in the ninth inning on a throwing error by third baseman Coby Mayo, lifting the Miami Marlins to a 4-3 victory over the Baltimore Orioles on Thursday night.
Orioles starter Cade Povich exited after three innings with left forearm discomfort, while Miami starter Max Meyer held Baltimore to two runs over five innings, setting up the tight contest.
Liam Hicks drove in two runs with a 386-foot home run in the first inning, while Otto Lopez extended his hitting streak to 10 games with two hits.
The victory halted Miami's four-game losing streak and prevented a series sweep, though Baltimore's Pete Alonso extended his hitting streak to eight games with a go-ahead single in the eighth.
Miami continues its 10-game homestand against the Nationals on Friday night, while the Orioles host the Athletics for their next series.