ST. LOUIS (AP) – Bryan Reynolds hit a tiebreaking two-run homer in the seventh inning and the Pittsburgh Pirates ended a nine-game skid, beating the St. Louis Cardinals 6-4.

Reynolds hit his 11th homer of the season after Tucupita Marcano singled with two outs off reliever Andre Pallante.

Wil Crowe threw two scoreless innings in relief for the win, and David Bednar picked up his 11th save by pitching the final 2 2/3 innings.

Jack Flaherty made his first appearance of the season for the Cardinals, who lost for the second time in their past nine home games.

The 26-year-old right-hander worked the first three innings, allowing four runs, three earned.