MILWAUKEE (AP) -

Pedro Alvarez homered twice to break out of a 5-for-34 slump, and the Pittsburgh Pirates beat the Milwaukee Brewers 10-2 on Saturday night.

Alvarez hit a three-run shot in the fourth inning and a solo drive in the fifth against starter Wily Peralta (15-8). Russell Martin also connected for a three-run homer off the right-hander, who held the Pirates hitless for 3 2-3 innings but quickly fell apart and exited after five.

Pittsburgh starter Edinson Volquez (11-7) pitched out of trouble almost every inning to improve to 3-0 in five August starts. The right-hander allowed 11 hits and two walks in 5 2-3 innings, but Milwaukee only managed two runs off him.

Each team had 12 hits, but Pittsburgh took advantage of its chances while Milwaukee squandered its opportunities.