WASHINGTON -- Denard Span scored on a throwing error by Arizona third baseman Jordan Pacheco with one out in the ninth inning as the Washington Nationals beat the Diamondbacks 1-0 Thursday for their 10th win a row and a sweep of the four-game series.

It was the third walk-off win of the series for Washington. The Nationals tied a franchise record for consecutive wins set in 2005. Six of the past seven victories are by one run and Washington has six walk-off wins in the last two weeks.

Anthony Rendon hit a grounder to third and Span, who was on second base, was waved home after the ball was thrown in the dirt past first and went out of play for an unearned run.

The winning pitcher was Rafael Soriano (4-1), who threw a scoreless ninth inning.