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.
How is WAR calculated, really? Breaking down a single play to find out
In the age of analytics, an ordinary play isn't so ordinary anymore.
Passan: Phillies banking on more from Wheeler
Jeff Passan explains how the Phillies singing Zack Wheeler to a 5 year/$118M deal is based more on expectations than performance.
Wilpons negotiating to sell controlling stake in Mets to hedge fund manager
Steve Cohen, a billionaire hedge fund manager who owns 4% of the New York Mets, is negotiating an agreement to acquire up to 80% of the team.
Indians' Carlos Carrasco, Braves' Josh Donaldson win Comeback Player of Year awards
Indians pitcher Carlos Carrasco was named the AL Comeback Player of the Year, and Braves third baseman Josh Donaldson won the award on the NL side.
Wave of non-tenders puts squeeze on lower-tier free agents
With 54 new players, including Blake Treinen, set free to the open market, teams show their commitment to not overpaying on any level.
Angels trade for Orioles RHP Dylan Bundy
The Angels on Wednesday acquired veteran right-hander Dylan Bundy in a trade with the Orioles.