LOS ANGELES -- It had been nearly four months since the Diamondbacks and Dodgers played each other.
Not much has changed. Arizona remains the dominant team.
David Peralta hit a three-run homer in the fifth inning and the NL West leaders won 3-1 on Thursday night in the opener of a pivotal series.
"This is a tight division right now and to be able to start out like this and put a little bit more of a gap between us is huge," winning pitcher Robbie Ray said.
The loss dropped the Dodgers two games behind Arizona and snapped their five-game winning streak, which they had put together against last-place San Diego and Texas. Los Angeles struck out 15 times, including four by Chris Taylor.
Arizona leads the season series 9-4.
Ray (4-2) gave up one run and four hits in 5 1/3 innings. He struck out nine and walked two to earn his first victory since June 23 at Miami. The left-hander hadn't figured into a decision in seven consecutive starts since July 20, the longest streak in franchise history by a starter.
"That is about as connected as I have been all year," Ray said. "I felt in control of the game. I felt like my pitches were crisp. There was good separation between my curveball and my fastball and I kept them off-balance the whole game."
Peralta sent his 26th homer into right field on the first pitch from Rich Hill with two outs, giving Arizona a 3-0 lead.
"I thought it was just going to hit the wall," Peralta said. "It was a low line-drive but it worked out our way this time."
Hill (6-5) allowed three runs and six hits in five innings. The left-hander struck out seven and walked none in his first loss since July 10.
"Just a bad pitch. Poor choice on my part and it cost us the game," Hill said of Peralta's homer. "These games are huge right now."
The Dodgers' lone run came on Manny Machado's 33rd homer in the sixth, his fourth in his last five games.
The Dodgers went 0 for 5 with runners in scoring position and stranded six.
"We did exactly what we wanted to at the plate," Machado said. "Sometimes you fail."
Los Angeles had the potential go-ahead run at the plate in the bottom of the eighth, but Kemp grounded into an inning-ending double play with runners on the corners.
Puig contributed to a 1-2-3 inning in the second when he was safe at first on an error by Paul Goldschmidt only to get tagged out attempting to advance on the play.
Dodgers reliever Caleb Ferguson pitched out of a bases-loaded jam in the eighth. After giving up three consecutive one-out singles, he struck out John Ryan Murphy and pinch-hitter Christian Walker lined out to right to end the inning.
D-backs: RHP Shelby Miller (right elbow tightness) will throw to 125 feet early next week. ... OF Jarrod Dyson (right groin strain) is headed to Triple-A Reno for a rehab assignment.
Dodgers: Reinstated RHP Josh Fields (right shoulder inflammation) from 60-day DL.
GOLDY GETTING ON
Goldschmidt went 2 for 5 and extended his streak of reaching base to 42 straight road games -- second-longest in the majors this season. During that run, he's 64 for 164 with 14 homers and 35 RBI.
RHP Zack Greinke (13-8, 2.93 ERA) goes for the D-backs. He is 3-1 with a 3.09 ERA in his last five starts against his former team. The Dodgers send LHP Hyun-Jin Ryu (4-1, 2.18) to the mound. He is 3-3 with a 3.90 ERA in 12 career starts against Arizona.
More AP MLB: https://apnews.com/tag/MLB and https://twitter.com/AP-Sports
Champion Red Sox to visit White House during spring training
The World Series champion Boston Red Sox will visit the White House on Feb. 15 and will also visit the Walter Reed National Military Medical Center during the trip.
Why are Machado and Harper still unsigned?
Tony Kornheiser and Mike Wilbon disagree on why Manny Machado and Bryce Harper remain unsigned into mid-January.
Matt Shepard taking over play-by-play for Tigers' TV broadcasts
Matt Shepard is taking over as play-by-play announcer for the Detroit Tigers on their Fox Sports Detroit television broadcasts.
Giants hire pitching analyst to aid with training efforts
Matt Daniels, the pitching coordinator for Driveline Baseball in Seattle, is joining the San Francisco Giants as an analyst to aid in the training of the team's pitchers.
How baseball shaped the career of Patrick Mahomes
Chiefs QB Patrick Mahomes and former MLB superstar Alex Rodriguez each tell the story of their relationship and how Mahomes came to choose football.
Five teams ready to strike once Bryce and Manny sign elsewhere
There's more to the market than Bryce Harper and Manny Machado. These clubs could make major upgrades without landing the two biggest prizes.