Published: Sep 18, 2011 4:09 AM EDT
Updated: Sep 19, 2011 6:31 AM EDT

SAN DIEGO (AP) - Joe Saunders took a five-hitter into the ninth inning, Paul Goldschmidt drove in three runs and the Arizona Diamondbacks beat the San Diego Padres 5-1 Sunday to cut the magic number to five for their first NL West title since 2007.

Arizona maintained a five-game lead over second-place San Francisco with nine games remaining, stopping a three-game losing streak. The Diamondbacks open a nine-game homestand Monday against Pittsburgh, then host the Giants for a three-game series next weekend.

Saunders (12-12) limited last-place San Diego an unearned run and seven hits in 8 2-3 innings, improving to 3-1 with a 1.47 ERA against the Padres this season. After two-out singles by Blanks and Alberto Gonzalez in the ninth, J.J. Putz struck out pinch-hitter Nick Hundley for his 41st save in 45 chances.