What to Know The Marlins took two of three in the series from the NL Central leaders, winning twice in extra innings.

The Marlins, who have the NL's worst record, hit a new attendance low with the smallest in the seven-season history of Marlins Park.

Jesus Aguilar hit like the All-Star he is, while the rest of the Milwaukee Brewers hit like also-rans.

Aguilar was added to the NL All-Star team Wednesday night and then validated the selection with three hits and three RBIs, but his teammates went 1 for 14 with runners in scoring position and Milwaukee lost 5-4 to the Miami Marlins in 12 innings.

"That's going to happen," Aguilar said. "We've got to keep going. We're playing really good. We've got to turn the page."

Starlin Castro singled home the winning run with one out in the 12th.

Aguilar doubled home a run in the first, singled in the fourth and hit a tying, two-run double in the eighth against Drew Steckenrider. He also learned he won the online vote for the final NL roster spot and his first All-Star berth.

"A lot of people believe in my name," the Venezuelan said. "It's really good. The campaign was unbelievable — the people in Wisconsin and around the world really supported me. It's a great thing."

Aguilar, who will also compete as the top seed in the Home Run Derby next week in Washington, came into the game leading the NL in homers, slugging and OPS. He has 67 RBIs and is batting .307.

Miami's Garrett Cooper led off the 12th with a single against Jorge Lopez (0-1) and went to second on a groundout. Castro then grounded a single to left field and Christian Yelich's throw home was off line, allowing Cooper to score standing up.

"Yelich is a really good player, but his one downfall is he doesn't throw great," Marlins manager Don Mattingly said. "You've got to challenge there and make him throw you out."

The Marlins took two of three in the series from the NL Central leaders, winning twice in extra innings.

"We're knocking on the doorstep and making it really hard to take us down," Brewers manager Craig Counsell said. "But they outlasted us tonight."

The Marlins, who have the NL's worst record, hit a new attendance low. The crowd of 5,265 was the smallest in the seven-season history of Marlins Park, and a few hundred fans remained at the finish.

The 4½-hour marathon wasn't what the Brewers needed as they near the end of a stretch in which they play 20 days in a row, including a doubleheader Saturday at Pittsburgh. Counsell said he ran out of pitchers, which is why reliever Lopez batted in the 12th with two on and two out.

"We managed to get to the 12th inning in that scenario, which was quite an accomplishment," Counsell said. "We just didn't ever get that run across."

With the score 4-all, Miami reliever Kyle Barraclough walked the bases loaded in the ninth, but Yelich struck out on a pitch in the dirt to end the threat.

Miami starter Dan Straily allowed one earned run in six innings, matched his season high with seven strikeouts and got his first RBI of the season with a bases-loaded walk. Elieser Hernandez (1-5) pitched two scoreless innings for his first career win.

Milwaukee rookie Freddy Peralta lasted only 3 2/3 innings in his shortest outing this year and allowed three runs, including Justin Bour's 15th homer.

"I've got to be better," Peralta said.