PHOENIX - Mark Trumbo homered twice and the Arizona Diamondbacks prevented St. Louis from clinching the NL Central title with a 5-2 victory over the Cardinals on Saturday night.

The Cardinals secured at least a tie for the division crown when Pittsburgh lost to Cincinnati earlier Saturday, but they need to win or have the Pirates lose on Sunday to finish alone in first place.

If the Cardinals and Pirates tie, they would meet in a one-game playoff.

Twenty-game winner Adam Wainwright will take the mound Sunday in the regular-season finale for the Cardinals.

Trumbo's three-run shot off Seth Maness (6-4) broke a 2-2 tie in the seventh inning. Trumbo hit a solo drive in the first in his second multi-homer game in six days. David Peralta also had a solo shot in the first.

Randal Delgado (4-4) pitched three scoreless innings of relief to get the win. Addison Reed worked a perfect ninth for his 32nd save in 38 tries.

The Cardinals, losers of four of six, scored on a sacrifice fly and wild pitch.

A.J. Pollock reached on an infield hit, and Peralta singled for his third hit of the game ahead of Trumbo's sixth home run in 11 games. Trumbo missed 11 weeks of the season because of a stress fracture in his left foot.

Peralta homered on the first pitch he saw from Lance Lynn in the first inning. Trumbo followed two pitches later with a shot into the left-field seats. Lynn blanked the Diamondbacks for the next five innings.

The Cardinals scrambled for two runs against starter Wade Miley to tie it in the third. Jhonny Peralta's bases-loaded sacrifice fly brought a run home. With two outs, Matt Adams struck out on a wild pitch that bounced to the backstop. Adams easily made it to first while Randal Grichuk raced home from second. By the time catcher Miguel Montero retrieved the ball and threw home, Grichuk slid in just ahead of Miley's tag.

TRAINER'S ROOM

Cardinals: LF Matt Holliday left the game in the sixth inning with flu-like symptoms.

Diamondbacks: INF Aaron Hill sat out because of a fractured pinky finger. ... INF Chris Owings missed his second straight game with a sore left shoulder. ... 1B Paul Goldschmidt (fractured hand) took batting practice with the team for the first time.

UP NEXT

Cardinals: Wainwright (20-9, 2.38 ERA) tries to become St. Louis' first 21-game winner since Chris Carpenter in 2005. Before the game, manager Mike Matheny said Wainwright would pitch Sunday whether the Cardinals had clinched the division or not.

Diamondbacks: RH Josh Collmenter (11-8, 3.57) wraps up a solid season, especially considering Arizona's awful record. In three games against the Cardinals, Collmenter is 2-0 with an 0.84 ERA.