Clayton Kershaw had an uncharacteristic meltdown Friday night, but he wasn't the only party responsible for the Dodgers' 5-3 defeat to the Arizona Diamondbacks at Chase Field.

The Dodgers in the seventh inning had the bases loaded with no outs and a run in and failed to score. In the eighth they had men on the corners with no outs and scored none.

"We left ourselves with a lot of chances tonight," Manager Don Mattingly said. "We just didn't execute. We just didn't get the hit when we needed it."

The Dodgers, who were three for 16 with runners in scoring position, ended a three-game winning streak. With two games remaining until the All-Star break, their lead over the second-place San Francisco Giants in the National League West was reduced to half a game.

The Diamondbacks won for the first time in seven games.

Kershaw said his fastball command was substandard the entire night, but it didn't show for the first five innings, as he held the Diamondbacks to a hit and a walk.

Then came the sixth inning, in which a five-run blitzkrieg by the Diamondbacks turned a two-run Dodgers lead into a three-run deficit.

He started the inning by walking Henry Blanco, who scored after consecutive one-out singles by Willie Bloomquist and Aaron Hill.

Justin Upton tripled into the left-field corner to drive in two runs, giving the Diamondbacks a 3-2 lead. In previous 22 career at-bats against Kershaw, Upton had only one hit.

A double by Jason Kubel scored Upton to increase the margin to 4-2. Kershaw's night was over.

"Before I knew it, we're down," Kershaw said.

Kubel scored on a wild pitch by reliever Jamey Wright and the Dodgers were down, 5-2.