The Pirates broke a 2-2 tie in the eighth inning when Spencer Horwitz was hit by a pitch with the bases loaded, forcing home Tyler Callihan for a 3-2 victory over the Marlins at PNC Park.
Bubba Chandler anchored Pittsburgh's effort with 5.2 innings, allowing 2 runs on 3 hits while striking out 6. Yohan Ramirez earned the win with a scoreless seventh inning, and Gregory Soto recorded his 10th save with a clean ninth.
The game remained close throughout, with Pittsburgh taking an early 1-0 lead in the first when Ryan O'Hearn singled home Spencer Horwitz. Miami answered in the third as Liam Hicks singled home Jakob Marsee, but the Pirates regained the lead immediately when Bryan Reynolds doubled home Horwitz. The Marlins tied it 2-2 in the sixth when Heriberto Hernández singled home Xavier Edwards.
Anthony Bender suffered his first loss of the season, allowing 1 run in the eighth inning. The reliever walked two batters before hitting Horwitz to force in the winning run.
Pittsburgh improved to 35-35 and snapped a two-game losing streak. Miami fell to 35-35, ending a six-game winning streak.