Red Sox starting pitcher Tanner Houck, right, stands in the dugout with Manager Alex Cora after being pulled from the mound for a reliever with no outs in the fifth inning against the Texas Rangers on Tuesday in Arlington, Texas. Julio Cortez/Associated Press

ARLINGTON, Texas — Josh Jung hit a tie-breaking single in a two-run seventh inning, and the Texas Rangers beat the Boston Red Sox 6-4 on Tuesday night in their bid for an AL wild card.

Texas, which ended a four-game losing streak, began the night tied with Seattle for the third AL wild card. The Rangers play the Mariners in seven of their last 10 games. Texas also is one game behind Toronto for the second wild card,

Aroldis Chapman (6-4) retired five consecutive batters in the seventh and eighth innings, striking out three, and Jose Leclerc pitched a perfect ninth for his third save in eight chances.

With the score 4-4, Marcus Semien was hit by a pitch from Chris Murphy leading off the seventh and took second on Corey Seager’s single. John Schreiber (2-2) relieved with one out and Jung grounded a single to center. Schreiber forced in a run with a bases-loaded walk to Jonah Heim.

Boston, last in the AL East, has lost five of six.

Rangers Manager Bruce Bochy was ejected in the seventh by plate umpire Ben May after a ball four to Luis Urias. Alex Verdugo followed with a potential inning-ending, double-play grounder to shortstop but Seager’s theow to second sailed into right field for an error that tied the score 4-4.

Advertisement

Adolis Garcia’s career-best 35th homer, his first since coming off the injured list, put Texas ahead in the second. Justin Turner hit a tying RBI grounder in a three-run third that included Masataka Yoshida’s two-run single.

Semien hit a run-scoring single in the fifth, and Texas went ahead 4-3 in the sixth on Leody Taveras’s run-scoring single and Heim’s RBI double.

Texas starter Nathan Eovaldi allowed three runs, four hits and three walks in five innings. It was his fourth start since coming off the 15-day injured list on Sept. 5. He didn’t go further than 3 1/3 innings in his previous three outings.

Boston’s Tanner Houck gave up two runs, three hits and four walks in four innings.

NOTES: Red Sox OF Wilyer Abreu (sore hand) is day to day. … Bochy said RHP Josh Sborz (biceps tendinitis) is close to returning after throwing Monday.