Brian Dozier (three hits, four RBIs) and Juan Soto smacked a pair of homers, and Matt Adams (three hits) and Anthony Rendon mashed three-run shots.
Victor Robles and Adam Eaton notched solo dingers for the Nationals, who tallied 19 hits and won for the sixth time in seven games, including a 17-7 win over Cincinnati on Wednesday. Catcher Yan Gomes went 3-for-5.
For the Brewers, Mike Moustakas had three hits, two homers and five RBIs, and Ben Gamel went 4-for-5 with a homer.
Right-hander Zack Greinke earned his 200th career victory, and visiting Houston avoided a series sweep with a win over Oakland.
Alex Bregman went 4-for-4 and belted his 30th home run of the season, a three-run shot in the fifth inning that erased a 1-0 deficit and allowed the Astros -- who had lost the first three games of the series -- to snap a five-game losing streak.
Greinke (13-4) held the A's to one run and four hits in seven innings en route to his third consecutive win since joining the Astros in a trade last month.
Mike Clevinger struck out 10 in five scoreless innings to win his seventh straight decision, Mike Freeman hit a three-run homer and Cleveland gained a split of its four-game series at New York.
Freeman, who started at third base as Jose Ramirez rested, hit his fourth homer of the season in the second and doubled twice.
Francisco Lindor barely cleared the fence with a solo drive, and rookie Oscar Mercado accounted for Cleveland's final three runs with a double and a two-run homer in the eighth. The Indians scored 27 runs and hit 10 homers in their two wins at Yankee Stadium.
Garrett Hampson hit a soft single to left field with the bases loaded in the 10th inning, and Colorado beat Miami in Denver.
Nolan Arenado hit a pair of home runs, Charlie Blackmon also went deep and Carlos Estevez (2-2) got the win for the Rockies, who posted their first sweep since claiming a three-game set against the Arizona Diamondbacks from June 18-20.
Harold Ramirez had three hits and drove in a pair of runs for the Marlins.
Ji-Man Choi hit a two-run single in the bottom of the ninth to give Tampa Bay a win over visiting Detroit.
Tommy Pham hit a two-run homer and scored twice for the Rays, who took two of three in the series. D'Arnaud knocked in the other run for Tampa Bay, while Jose Alvarado (1-5) pitched a scoreless inning of relief to pick up the win.
Tigers starter Matthew Boyd reached the 200-strikeout mark for the season. He held the Rays to one run on two hits and walked just two in seven innings.
Paul Goldschmidt belted a two-run homer, and Tommy Edman also went deep as visiting St. Louis edged Cincinnati.
Lane Thomas and Marcell Ozuna each drove in a run for the Cardinals, who earned a split of the four-game series against Cincinnati with their seventh victory in their past nine contests.
Tucker Barnhart ripped a two-run single to right field in the ninth inning off Carlos Martinez to trim St. Louis' lead to 5-4, but the right-hander struck out two of the next three batters to secure his 14th save.
Merrill Kelly allowed one run and six hits over 5 2/3 innings to help Arizona end a four-game losing streak with a win against visiting San Francisco.
Wilmer Flores had two hits, including a solo homer, David Peralta also homered, and Adam Jones had two RBIs in his first start in center field this season for Arizona.
Giants left-hander Madison Bumgarner (8-8) was aiming to win his third straight start and sixth consecutive decision. He allowed four runs and six hits in six innings, striking out nine and walking two.
Matt Thaiss finished a triple short of the cycle and drove in four runs, and Kole Calhoun, Shohei Ohtani and Anthony Bemboom homered to back seven strong innings from Griffin Canning and lift host Los Angeles to a win over Chicago.
Los Angeles out-hit Chicago 15-7 in the series finale and won three of four games over the weekend.
Thaiss provided the only run support the Angels needed in a pitching matchup of rookie right-handers, drilling a three-run home run to right field against the White Sox's Dylan Cease with one out in the second inning.