Miami(9-11) ripped out to a 3-0 lead in the bottom of the first. Jakob Marsee scored on a wild pitch. Heriberto Hernandez then grounded into a double play for Xavier Edwards to score. Liam Hicks followed with a base hit into left field and Otto Lopez crossed the plate.
Milwaukee(12-8) made it 3-1 in the top of the sixth. Garrett Mitchell grounded out to first and David Hamilton reached home.
The Marlins expanded their lead to 5-1 with two runs in the bottom of the sixth. Javier Sanoja knocked in Hicks and Owen Caissie on a single into center field.
The Brewers cut it to 5-3 during the eighth inning. Gary Sanchez drove in Sal Frelick and Mitchell with a base hit up the middle.