Updated

Marco Estrada lost track of the time, then had to hurry through his pregame routine.

The Miami Marlins quickly went to work against Estrada, scoring three runs in the first inning Thursday in a 6-2 win over the Milwaukee Brewers.

"I rushed a little bit," Estrada said. "By the time I was done, the game had already started and (Josh) Johnson had a pretty quick inning. It's my fault, I can't let little things like that happen."

Miami's first three batters recorded hits and Donovan Solano, Jose Reyes and Greg Dobbs each drove in a run. Estrada (2-6) came into the game 2-0 with a 0.50 ERA in his previous three starts.

"It was brutal," Estrada said. "I went out there and wasn't making my pitches. I felt all out of whack. I just wasn't making my pitches and even when I did they got hit."

Johnson (8-11) pitched seven solid innings and ended his career-worst four-game losing skid.

"I settled in, used my curveball and located my fastball," Johnson said. "I made pitches when I needed to. That's the name of the game."

Johnson allowed two runs and four hits while striking out seven while lowering his ERA to 3.86. He won for the first time since Aug. 3 at Washington. He has a 3.22 ERA in his last 17 starts after compiling a 4.83 ERA in his first 11 starts.

"He started the season very rough because he hadn't pitched in a while," Marlins manager Ozzie Guillen said. "After that he got the momentum going. You look up and he's had a great year if you look at it that way, compared to last year."

Greg Dobbs drove in two runs for Miami. The Marlins had 12 hits, three by Solano.

"It's fun when you see people smile and play music in the clubhouse," Guillen said.

The Brewers lost for just the fourth time in 17 games. A day earlier, they pulled within 6½ games of the second NL wild-card spot.

"Every game is a must-win at this point," Brewers catcher Jonathan Lucroy said.

An error by second baseman Rickie Weeks, who starred Wednesday night with a pair of two-run homers, let the Marlins stretch their lead to 4-0 in the second. Donnie Murphy doubled and scored on the misplay.

The Brewers had averaged 7.7 runs in the previous seven games, but did little against Johnson.

"He was tough," Lucroy said. "He's a real big guy and you don't have a lot of time to react to it. He's throwing pretty hard. He pitched well, you have to give credit to him."

Norichika Aoki tripled in the third to extend his hitting streak to 10 games and scored on a sacrifice fly by Ryan Braun.

The Brewers pulled to 4-2 in the seventh on a sacrifice by Aoki.

"We had a couple of opportunities, but they outplayed us today," Brewers manager Ron Roenicke said.

Giancarlo Stanton and Dobbs doubled in the eighth and Murphy added an RBI single.

NOTES: Brewers 3B Aramis Ramirez was held out with a lower back and oblique strain. He aggravated the injury during an at-bat on Wednesday and was pulled. "You always worry about those things because they can be more than what the player thinks," Roenicke said. "He says, 'I don't think it's that bad, maybe just a day.' Sometimes it turns into a lot more than that." ... The Brewers recalled 3B Taylor Green from Triple-A Nashville. ... Aoki has had three hitting streaks of at least 10 games, including a 15-game string from June 23-July 8. ... Miami RHP Jacob Turner (0-2, 6.55 ERA) will oppose Washington RHP Stephen Strasburg (15-6, 2.94 ERA) on Friday night at Nationals Park. ... Milwaukee will send ace RHP Yovani Gallardo (14-8, 3.79 ERA) against St. Louis RHP Kyle Lohse (14-2, 2.81 ERA).