MIAMI (AP)Mark Mathias drew a bases-loaded walk that broke an eighth-inning tie and lifted the Texas Rangers over the Miami Marlins 3-2 Monday in the first game of a split doubleheader.

Miami reliever Steven Okert (5-3) walked Corey Seager and Adolis Garcia around Nathaniel Lowe’s two-out infield single before Mathias reached.

”Mathias and Adolis had hitters’ counts so you could easily get over-aggressive there and chase,” Rangers interim manager Tony Beasley said. ”It’s good to see us be patient there and take what’s given us.”

Jonathan Hernandez (2-2) pitched 1 2/3 innings. Matt Moore inherited two runners from Hernandez in the eighth and retired Miguel Rojas on a groundout. Jose Leclerc closed with a perfect ninth for his fifth save.

”We stayed in the game until we were able to scratch a couple and take the lead,” Beasley said.

The defeat assured the Marlins (27-41) of a losing season at home, a day after clinching their 23rd sub-.500 record in the club’s 30-year history.

The Rangers erased 2-0 deficit and chased Marlins starter Trevor Rogers with a two-run seventh. Garcia hit a one-out double and Mathias walked before rookie Josh Jung’s RBI double and ended Rogers’ outing.

Marlins center fielder JJ Bleday had a beat on Jung’s drive but mistimed the catch as the ball bounced off the wall.

”I thought he was there,” Marlins manager Don Mattingly said. ”He’s always kind of reaching for the wall and trying to find it, which is the way outfielders should do it. If anything, he maybe took his eye off it at the last second.”

Tommy Nance relieved Rogers and allowed Sam Huff’s tying groundout.

Rogers struck out a season-high nine. He allowed three hits and walked two.

”It’s definitely probably the best I’ve felt all year mentality wise,” Rogers said. ”My body felt great. Just for me being able to put all the pieces together and really go execute my pitches felt good.”

Texas starter Glenn Otto limited Miami to two runners through the first four innings until he hit Rojas and walked Jacob Stallings to start the fifth. Rojas and Stallings then advanced on a wild pitch.

Lewin Diaz’s sacrifice fly and Jon Berti’s RBI single in the Marlins fifth broke a scoreless tie.

Otto was lifted after six innings.

”I tried to get deep into the game and be efficient,” Otto said. ”I shot myself in the foot a couple of times in the middle of the outing but was able to recover.”

SPLIT DATES COMPLETE SERIES

The clubs’ original three-game series was set for April 4-6, but the MLB lockout altered the early season schedule. As a result, the games were split into one played on July 21 and Monday’s doubleheader.

ROSTER MOVES

The Rangers appointed RHP A.J. Alexy to occupy the 29th roster spot for the doubleheader while the Marlins selected RHP Bryan Hoeing as their 29th man.

The Marlins selected the contract of Aneurys Zabala from Triple-A Jacksonville and optioned LHP Andrew Nardi to the same minor league club.

TRAINER’S ROOM

Rangers: RHP Spencer Howard (right shoulder impingement) allowed one run and five hits and struck out four in his four-inning rehab start with Triple-A Round Rock on Sunday.

Marlins: After repeated setbacks in his rehabilitation, OF Jorge Soler (low back spasms) will be shut down for the remainder of the season. Soler, the 2021 World Series MVP, joined the Marlins on a three-year, $36 million free agent deal as the club expected him to be one of its top offensive threats. Instead, Soler was limited to 72 games and finished with 13 home runs and 34 RBIs.

UP NEXT

RHP Jon Gray (7-6, 3.82) will start the second game of the doubleheader for the Rangers while the Marlins will go with LHP Braxton Garrett (2-6, 3.67).

More AP MLB: https://apnews.com/hub/MLB and https://twitter.com/AP-Sports