Reggie Hildred-USA TODAY Sports

Rougned Odor capped a five-RBI day with a three-run homer with two outs in the ninth inning and the visiting San Diego Padres rallied to beat the Washington Nationals 8-6, taking the rubber contest of the three-game series.

Washington scored five runs in the seventh to take a 6-5 lead but Jake Cronenworth and Juan Soto singled off Hunter Harvey (2-2) to start the ninth. Harvey bounced back, striking out Xander Bogaerts and Matt Carpenter, but Odor lined a 1-0 fastball to right for his second homer in as many days.

Drew Carlton pitched a scoreless eighth inning and Josh Hader worked the ninth for his 13th save for San Diego, which had lost five consecutive series.

Padres starter Blake Snell allowed one run on four hits in five innings.

Dominic Smith had a double and a single for the Nationals.

The Nationals took a 1-0 lead in the first inning when Lane Thomas singled, went to second on an error and scored on a Joey Meneses single.

With two outs in the second, San Diego's Ha-Seong Kim fouled a ball off his knee and left the game. Brandon Dixon replaced him and singled to left. Trent Grisham followed with an opposite-field fly ball that landed just beyond the fence to give the Padres a 2-1 lead.

Fernando Tatis, Jr. led off the fifth with a single and Soto walked. After a balk by Erasmo Ramirez moved both runners up a base, Xander Bogaerts singled home Tatis. With two outs, Odor doubled, scoring Soto and Bogaerts to make it 5-1.

Luis Garcia and Meneses opened the Washington seventh with singles off reliever Tim Hill. Jeimer Candelario followed with a double to right, scoring Garcia to make it 5-2. Nick Martinez relieved Hill, but

Corey Dickerson lined a single to left and Meneses scored, and Smith grounded a single to right, scoring Candelario to cut the deficit to 5-4.

A throwing error by Martinez on a Alex Call bunt allowed Dickerson to score the tying run and put runners on second and third, still with no outs. With the infield in, pinch-hitter Keibert Ruiz's smash deflected off second baseman Cronenworth as Smith scored to make it 6-5.

More must-reads:

TODAY'S BEST
Oilers star will be game-time decision for Game 2
Former MLB infielder Sean Burroughs dies at 43 years old
Angels superstar explains why he chose not to play through knee injury
Cardinals catcher's injury timeline revealed
Suns hire ex-NBA champion as new head coach
Frank Vogel fell victim to a Suns ownership group eager to win
Luka Doncic hands OKC first playoff loss with gutsy Game 2 effort
Three takeaways as Rangers take commanding 3-0 series lead on Hurricanes
Rams make surprising move with former team captain
Ohio State AD is wrong for thinking Michigan wins deserve asterisk
Padres OF Jurickson Profar is a legitimate MVP candidate
Steelers' Cameron Heyward comments on controversial Justin Fields idea
Pacers coach claims officials are biased against 'small market' teams
14-year-old phenom signs unprecedented MLS deal that includes future Man City transfer
Tiger Woods, Rory McIlroy's 'soured' relationship paints murky future for PGA Tour
Stars almost blow another lead, even series with Avalanche
Auburn's Hugh Freeze uncomfortable with 'bidding wars' for top players in transfer portal
Cavaliers punch back, blow out Celtics in Game 2
Coach: Oilers star center could miss Game 2 vs. Canucks
Watch: Cavaliers' Evan Mobley turns defense into offense in Game 2 vs. Celtics