Aledmys Diaz's walk-off single in the ninth inning gave the St. Louis Cardinals a 6-5 come-from-behind victory over the San Diego Padres Thursday night.

St. Louis, which scored four runs in the eighth, recorded its first four-game series sweep at home since early October 2010.

Tommy Pham led off the bottom of the ninth with a double off reliever Carlos Villanueva (1-1). Diaz ripped a 3-2 bases-loaded pitch to left for the game-winner.

St. Louis reliever Jonathan Broxton (2-2) picked up the win with a scoreless ninth.

Adam Wainwright gave up two runs and seven hits over six innings. He struck out eight and did not walk a batter at Busch Stadium.