DETROIT — Victor Martinez hit a tiebreaking homer in the eighth inning, and the Detroit Tigers beat Baltimore 4-3 on Friday night, pulling even with the Orioles for the American League’s second wild card.

Michael Fulmer pitched seven solid innings, and the Tigers won despite blowing a 3-0 lead. The Orioles tied it in the eighth when Adam Jones hit an RBI single, but Martinez led off the bottom half with a drive to right-center field off reliever Brad Brach (8-3).

Alex Wilson (3-0) got the win even after allowing the tying run in the eighth. Francisco Rodriguez pitched a perfect ninth for his 40th save in 44 chances. He is tied with Baltimore’s Zach Britton for the AL lead in saves.

INDIANS 6, TWINS 5: Mike Napoli hit a mammoth home run on the first pitch of the fifth inning to give Cleveland the lead, and the Indians held on at Minneapolis.

The Indians won for the ninth time in their last 11 games, but a concern came up when starter Danny Salazar was removed after four innings because of tightness in his right forearm. His departure was announced by the team as a precaution, but Salazar was on the disabled list for elbow inflammation a month ago.

WHITE SOX 7, ROYALS 2: Carlos Rodon struck out a season-high nine over six innings, Adam Eaton doubled twice and scored two runs and Chicago won at home.

NATIONAL LEAGUE

MARLINS 4, DODGERS 1: Jose Fernandez tied a career high with 14 strikeouts, overshadowing Clayton Kershaw’s return from injury and leading Miami to a victory at home.

Fernandez (14-8) gave up three hits and three walks in seven shutout innings. It was the third time he’s struck out 14 this season.

Kershaw (11-3) had not started for the Dodgers since June 26 because of a mild disk herniation in his back. He threw 66 pitches, 46 for strikes, while allowing two runs and five hits in three innings.

The three-time Cy Young Award winner and 2014 NL MVP struck out five and did not walk a batter.

NATIONALS 5, PHILLIES 4: Trea Turner hit his second home run of the game with two outs in the bottom of the ninth, a solo shot that lifted Washington over Philadelphia.

It was the first multihomer game for the rookie, whose two-run drive in the seventh put Washington up 4-1. Cameron Rupp hit a three-run homer off Koda Glover to knot the score in the eighth.

REDS 4, PIRATES 3: Jose Peraza’s sacrifice fly snapped a ninth-inning tie and lifted Cincinnati to a win at Pittsburgh, ending the Reds’ five-game losing streak.

With the score tied 3-3, Eugenio Suarez hit a leadoff single off closer Tony Watson (2-5), advanced to second on Ramon Cabrera’s sacrifice bunt, took third on Tyler Holt’s single and scored on Peraza’s liner to center field.

CARDINALS 4, BREWERS 3: Matt Carpenter and Stephen Piscotty hit two-run homers in the fourth, Carlos Martinez pitched seven solid innings and St. Louis won at home.

St. Louis trailed 3-0 when Martinez started the winning rally with a two-out single that was followed by Carpenter’s 19th home run, a walk to Kolten Wong and Piscotty’s 21st homer.

METS 6, BRAVES 4: Kelly Johnson’s pinch double drove in the go-ahead run in New York’s four-run eighth, and the Mets rallied from a four-run deficit at Atlanta for their sixth straight win.

Curtis Granderson, who hit a two-run homer in the sixth, had a run-scoring single to tie the game.

INTERLEAGUE

CUBS 2, ASTROS 0: Kris Bryant hit a two-run homer, Jon Lester threw seven scoreless innings and Hector Rondon and Aroldis Chapman completed the shutout to give Chicago a win at Houston.

Lester (16-4) allowed seven hits and struck out seven for his seventh straight win. He hasn’t lost since July 3, allowing just four runs in the seven outings since.