MIAMI — Christian Yelich thought he had a home run in the first inning. It was robbed by Kansas City Royals center fielder Jarrod Dyson.

“It was a great play,” Yelich said. “It’s a huge ball park. We play in the worst hitters’ park in baseball so you better get it. I didn’t get enough of it and he made a great play. You’ve got to hit it to get it out of here. It’s a terrible hitters’ park.”

The home run could have helped set the tone for the Marlins’ offense, which went 1 for 11 with runners in scoring position in a 5-2 loss to Miami on Thursday night.

“We had a few chances, we didn’t have a ton, but we had a few chances but weren’t able to scratch,” Marlins manager Don Mattingly said.

The Marlins went 3 for 26 with runners in scoring position and left 24 men on base in the three-game series, dropping two games.

Alcides Escobar is the latest player to make an impact at the plate for the Royals.

Escobar homered, doubled, and drove in two runs.

“Esky had a great game,” Royals manager Ned Yost said. “Just had a great game. Defensively, offensively, the home run was big to give us a two-run lead at that point.”

Escobar is hitting .388 (19 for 49) with four doubles, a triple, and a home run in his last 13 games.

Salvador Perez and Kendrys Morales also drove in runs for the Royals as the defending World Series champions have won 15 of 18 to pull within four games of the second AL wild card spot.

Kansas City starter Edinson Volquez (10-10) pitched five innings and allowed two runs, both unearned, and three hits.

The Royals’ bullpen, which has been a successful formula for the reigning two-time AL pennant winners, pitched four scoreless innings to push their franchise-record scoreless streak to 38 2-3 innings – the best in the majors since 2002-03 when San Francisco tossed 39 1-3 straight.

“They’ve just been spectacular,” Yost said.

Kelvin Herrera pitched a flawless ninth for his ninth save in 11 chances.

Tom Koehler (9-9) allowed four runs, three earned, and seven hits in six innings for the Marlins.

“It was an interesting game,” Koehler said. “You’ve got to give them credit. They capitalized on our mistakes we made tonight.”

Kansas City went 4 for 28 with runners in scoring position and scored six runs during the three-game series, but left Miami with two victories.

“We don’t care what we do as long as we win,” Yost said. “As long as we score more runs than they do and it’s a combination of pitching, great defense, and timely hitting and that’s been our recipe for a while now.”

The Royals opened the scoring in the third on an RBI double by Perez after the Marlins elected to intentionally walk Eric Hosmer with first base open. Cheslor Cuthbert scored on Perez’s ground ball down the left-field line.

“They (the coaches) have their reasons for why they make decisions,” Koehler said of the intentional walk. “So they called for it and you’ve got to do it.”

Escobar extended the Royals’ lead to 2-0 on a home run to center field in the fourth. It was his third of the season and second of the month.

“I was looking for a fastball on that pitch,” Escobar said. “(Koehler) threw me a first-pitch cutter and the next pitch was a fastball and I swung the bat and hit the ball really good.”

Third baseman Cuthbert had two doubles to go with two errors, one of which led to the Marlins’ two runs coming in the fourth to tie the game at 2.

Escobar’s tiebreaking RBI double off Koehler in the sixth gave the Royals the lead. Morales’ pinch-hit sacrifice fly put the Royals on top 4-2.

Both teams combined for six errors.

TRAINER’S ROOM

Royals: C Perez took a foul ball off his face mask in the eighth and was replaced by Drew Butera in the ninth as a precaution. “He got a little light-headed so we just got him out,” Yost said.

Marlins: RF Giancarlo Stanton (groin strain) is hopeful he can return to the team at some point during the regular season to help the Marlins’ after sustaining the injury on Aug. 13. “Anything could help so whatever I can do to be back, if it’s possible, is going to happen,” Stanton said.

UP NEXT

Royals: RHP Ian Kennedy (8-9, 3.58) will start Friday’s game at Boston against RHP Steven Wright (13-5, 3.01) in a three-game series with the Red Sox. Kennedy has recorded five straight starts of at least six innings and one-or-fewer runs matching Larry Gura for the longest such streak in franchise history. Kennedy is 2-0 with a 0.79 ERA during the stretch.

Marlins: RHP David Phelps (7-6, 2.28) will take the mound Friday to begin a three-game series against San Diego, which will start former Marlins RHP Jarred Cosart (0-1, 4.54). Phelps is 2-1 with a 1.31 ERA over his last four starts since moving into the rotation.