The patient Kansas City Royals waited while Milwaukee's pitchers hurt themselves.
Joey Gathright's bases-loaded walk in the 11th inning off Chris Spurling lifted the Royals to a 4-3 victory over the Brewers. It was the third walk of the inning for Kansas City, and sixth in the final five innings.
"We had three walks that really hurt us," Milwaukee manager Ned Yost said. "A leadoff walk in the eighth, a leadoff walk in the 11th and the one that ended up scoring the eventual winning run."
The Royals loaded the bases with no outs in the 11th against Jose Capellan (0-2). John Buck walked, Tony Pena singled, and Emil Brown walked, chasing Capellan.
Spurling entered and got David DeJesus to line out, but Gathright walked on five pitches to make it 4-3.
"I just knew he was going to throw sinkers, sinkers, sinkers," Gathright said. "It's tough to see out there in the late innings of the day.
"Mainly, it was just tough to see, but I knew he wasn't going to try to throw me anything to hit."
David Riske (1-2) pitched the 10th to get the win and Jimmy Gobble worked a perfect 11th for his first save.
Kansas City snapped a four-game losing streak. It was only the third time in 39 games that the Royals have come back to win when trailing after seven.
"It was good to see how we came back," DeJesus said. "We didn't feel we were out of the game."
Corey Hart hit a solo home run off Kansas City closer Octavio Dotel with one out in the ninth to tie it at 3. It was Hart's 10th of the season and extended his hitting streak to 11 games.
Dotel has blown two straight save opportunities after converting his first six chances this year.
"We hung in there," Kansas City manager Buddy Bell said. "We could have cashed it in there."
The Brewers, whose five-game winning streak ended, got a strong start from rookie Yovani Gallardo and led 2-1 when he left after seven innings.
"He pitched another real good ballgame," Yost said. "He started to labor a little bit in the seventh but it was a big test for him; to pitch into a little trouble, pitch himself out and keep the lead. We were real proud of his effort."
Derrick Turnbow blew the lead in the eighth, walking pinch-hitter Fernando Cortez to open the inning. DeJesus followed with a single to center field and advanced to second when Bill Hall tried to throw out Cortez at third.
Gathright drove in Cortez with a weak groundout to second and Teahen followed with a sharp single to right-center to make it 3-2 as the sellout crowd of 44,064 booed.
The Brewers' top two home run hitters, Prince Fielder and J.J. Hardy, were out of the starting lineup.
Tony Graffanino homered for Milwaukee and finished with two hits.
Gallardo struck out eight, walked two and allowed five hits in his second start since being recalled from Triple-A Nashville to take the spot of injured left-hander Chris Capuano.
Gallardo walked DeJesus to lead off the game, then retired 13 consecutive batters before Esteban German singled in the fifth for Kansas City's first hit.
Odalis Perez pitched five innings for the Royals, giving up two runs and seven hits with two walks.
Ryan Braun had a sacrifice fly in the fifth and Graffanino hit his fifth homer in the sixth to help the Brewers build a 2-0 lead.
The Royals scored their only run off Gallardo in the seventh. Alex Gordon walked with one out, moved to second on Shane Costa's single and scored on German's base hit. Gallardo then struck out John Buck and Pena with Costa on third to end the threat.