PHOENIX -- The Arizona Diamondbacks fell into an early hole against a team ahead of them in the National League wild-card standings.
Once they cycled through the third inning, the hits kept coming.
"I was really pleased with the way we swung the bats tonight," Diamondbacks manager Torey Lovullo said. "We fell behind early and kept plowing away. We had the six-run inning and kept tacking on."
The Diamondbacks broke open the game with six runs in the third inning against Jhoulys Chacin (3-10), punctuated by hitting a single, double, triple and home run in four straight at-bats.
Arizona moved to within a game of the final NL wild-card spot after its seventh win in 10 games.
"We're feeling good. We're playing well," Marte said. "We feel like we have what it takes to make the playoffs."
Christian Yelich hit a two-run homer, his majors-leading 35th, and Lorenzo Cain hit a solo shot for the Brewers. Milwaukee led 3-1 early and scored three runs in the seventh inning to pull to within 10-7 but couldn't make up the deficit after the third.
"Offensively we did a nice job, put pressure on them," Brewers manager Craig Counsell said. "It just wasn't enough."
Chacin was sharp his last start in a no-decision against the San Francisco Giants, giving up an earned run and four hits in five innings.
He was not so sharp against the Diamondbacks.
Nick Ahmed hit a sacrifice fly in the second inning before Arizona went up 7-3 in the third.
Marte followed Jarrod Dyson's one-out single with his second double to score Dyson. Escobar then lined a run-scoring triple, and Walker followed with a two-run homer to left.
Arizona scored two more runs after Chacin was lifted and second baseman Keston Hiura botched a potential double play for an error.
Chacin gave up seven runs -- six earned -- and seven hits in 2 1/3 innings to remain winless in 11 straight starts since April 30.
"I haven't done anything to keep me in the rotation," Chacin said.
Arizona's Taylor Clarke (back) was reinstated from the 10-day injured list to start against the Brewers.
The right-hander was hit hard early.
Hiura lined a two-run single in the second inning, and Cain led off the third with his seventh homer to put Milwaukee up 3-1.
Clarke gave up four runs and seven hits in 3 2/3 innings.
"Just a few of those counts of falling behind and not really making a quality pitch," he said.
Marte was ejected in the seventh inning -- after swinging through a pitch on a strikeout.
He questioned a previous strike call by plate umpire Sam Holbrook then slammed his bat and helmet to the ground after missing Burch Smith's third strike. Holbrook sent Marte off right after his helmet hit the dirt.
"I felt it was unfair because I didn't say anything to him," Marte said through an interpreter after his second career ejection. "Maybe the helmet landed a little too close to him, but I really didn't say anything to warrant what happened."
Brewers: RHP Jimmy Nelson (elbow) is slated to make a rehab start for Class A Wisconsin on Sunday.
Diamondbacks: Dyson was back in the lineup after missing Thursday's game because of a hamstring cramp. ... RHP Jon Duplantier (shoulder) was reinstated from the 10-day injured list and optioned to Triple-A Reno. Infielder Domingo Leyba also was sent to Reno.
Brewers: LHP Gio Gonzalez is expected to be activated from the 10-day injured list (left arm fatigue) to start against Arizona on Saturday. He made rehab starts with Class A Carolina and Triple-A San Antonio after going on the injured list May 29.
Diamondbacks: RHP Zack Greinke needs six strikeouts against the Brewers on Saturday to tie Tim Keefe (2,555) for 31st and seven to tie Jerry Koosman (2,556) for 30th on the career strikeouts list.
Setting sights on spring training, Jose Altuve confident embattled Astros will 'be in World Series'
While second baseman Jose Altuve was open and eager to address the sign-stealing scandal at the Astros' winter fan festival, third baseman Alex Bregman was stoic and stingy with his words as the team sets its sights on spring training.
Cardinals' Harrison Bader confident he'll start in center field this season
Harrison Bader is confident he'll be in center field for the St. Louis Cardinals when the season begins. "It's my position. I'm going to take it. There's no sense in talking about it," he said.
Hall of Fame says deceased players on MLB's ineligible list won't be on ballots
The Baseball Hall of Fame on Saturday said that death does not open the door for players on MLB's ineligible list to be placed on the ballot for entry into Cooperstown.
Altuve, Bregman mum on cheating allegations
Alex Bregman and Jose Altuve decline to comment about the Astros' sign-stealing scandal, but Altuve predicts that the Astros will return to the World Series.
Martinez confident Red Sox will be cleared
J.D. Martinez says MLB's investigation of the Red Sox will find no sign stealing.
J.D. Martinez confident Red Sox will be cleared in investigation, as 'there was nothing going on here'
At the Red Sox Winter Weekend fan festival, Boston slugger J.D. Martinez reiterated his confidence that his club will be cleared in MLB's investigation into sign stealing.