Charles LeClaire-USA TODAY Sports

Gary Sanchez socked a pinch-hit, two-run homer in the top of the eighth to lift the visiting Milwaukee Brewers to a 7-5 win against the Pittsburgh Pirates on Thursday.

Rhys Hoskins went 3-for-5 with two RBIs and William Contreras went 2-for-4 with a home run to help the Brewers split the four-game series.

Jared Koenig (1-0) gave up two hits in the seventh inning for the win. Trevor Megill pitched a clean ninth for his first save.

Aroldis Chapman (0-2) allowed two runs on two hits in one inning.

Sanchez's homer to right field off Chapman gave Milwaukee a 6-5 lead and Oliver Dunn's single in the top of the ninth drove in Willy Adames to make it 7-5.

In the fifth inning, Contreras reached on a single to shallow right field and stole second. Hoskins doubled on a shot to left field that popped out of the glove of Jack Suwinski. Contreras scored on the play, putting Milwaukee ahead 4-3.

Joey Bart drew a two-out walk and then scored to tie it 4-4 on Suwinski's double in the bottom of the fifth. Jared Triolo singled on a fly ball to right field, driving in Suwinski and giving Pittsburgh a 5-4 lead.

Contreras gave Milwaukee a 1-0 lead in the top of the first when he belted a homer to left off Pirates starter Mitch Keller.

In the bottom of the first, Bryan Reynolds singled and Rowdy Tellez drew a walk to bring up Bart, who cleared the bases with a 419-foot shot to center that put the hosts ahead 3-1.

The Brewers tied it 3-3 in the top of the third.

Sal Frelick and Contreras each drew walks to start the inning. After Adames struck out, Jake Bauers singled to right, bringing Frelick home to cut it to 3-2. Hoskins followed with a single off the glove of Reynolds in right field, scoring Contreras.

Brewers starter Freddy Peralta pitched 4 2/3 innings, giving up five runs on five hits, with five walks and five strikeouts.

Keller gave up four runs on six hits and fanned seven in five innings for the Pirates.

More must-reads:

TODAY'S BEST
USA Hockey names HC for 2025 4 Nations Face-Off and 2026 Olympics
Key Knicks forward ruled out for Game 7 vs. Pacers
Pacers' Pascal Siakam leads team to Game 6 win vs. Knicks
Watch: Matt Duchene's 2OT winner sends Stars to conference final
Scottie Scheffler shoots improbable 66 after warming up for PGA Championship in a jail cell
Report: Tua Tagovailoa away from Dolphins amid contract chatter
Nuggets star has worrying comment about latest injury
Paul Skenes makes incredible Wrigley Field history in second-career MLB start
Giants rookie CF to undergo season-ending labrum surgery
Yankees' Juan Soto reacts to Hal Steinbrenner contract talk
Late goal sends Panthers to Eastern Conference Finals
Ex-teammate of Shohei Ohtani placed bets with same illegal bookmaker as interpreter 
Former Rams first-round pick retires from NFL after 11 seasons
Insider provides major injury update on Celtics' Kristaps Porzingis
Watch: Bruins strike first in Game 6 with incredible backhand goal
Dodgers make series of moves involving notable players
Hurricanes not expected to re-sign defenseman, center
Maple Leafs tab former Stanley Cup winner as new head coach
NFL insider expands on competition between Steelers QBs Russell Wilson, Justin Fields
NFL sets outrageous prices for Eagles-Packers Brazil game

Want more sports news?

Join the hundreds of thousands of fans who start their day with Yardbarker's Morning Bark, the best newsletter in sports.