Orlando Ramirez-USA TODAY Sports

Jake Cronenworth hit a game-ending single with one out in the 10th inning Friday night to give the San Diego Padres a 5-4 win over the visiting Los Angeles Dodgers.

The Padres (77-62) moved into the second National League wild-card slot, a half-game ahead of the Philadelphia Phillies (76-62). San Diego is four games in front of the Milwaukee Brewers (73-66), who sit fourth in the race for three wild-card positions.

Left-hander Adrian Morejon (4-0) retired the first three hitters in the Dodgers' batting order in the top of the 10th, stranding the automatic runner at second.

Heath Hembree (3-1) opened the bottom of the 10th for the Dodgers. He started by intentionally walking Manny Machado before striking out Josh Bell. Cronenworth then lined a single to right, with automatic runner Juan Soto easily beating a wide throw by Mookie Betts to the plate.

The Padres are 11-3 in extra innings this year and have 11 walk-off wins. San Diego beat Los Angeles (94-43) for just the fourth time in 14 meetings this season. The Dodgers, who had won four of their previous five games overall, still lead the National League West by 18 games.

Five Padres relievers held the Dodgers to one hit over five scoreless innings.

The starting pitchers exited after five innings with similar lines in a 4-4 tie. The Dodgers' Dustin May gave up four runs (three earned) on five hits and three walks with three strikeouts. The Padres' Mike Clevinger allowed four runs on five hits and a walk with four strikeouts.

After a 45-minute rain delay at the start of the game, the Dodgers took a quick lead on Freddie Freeman's 446-foot, solo homer in the first. In the second, San Diego's Trent Grisham followed a leadoff single by Jake Cronenworth and a one-out walk drawn by Wil Myers with a three-run homer.

The Dodgers leveled the game in the third. Freeman hit a bases-loaded sacrifice fly, and Will Smith's swinging bunt single toward third scored the tying run.

Trayce Thompson, who played for the Padres earlier this season, put the Dodgers on top 4-3 in the fourth with his ninth homer of the season.

A rare misplay by Betts in right allowed the Padres to tie the game at 4-4 in the fifth. Soto drew a one-out walk and Manny Machado followed a line-drive single to right that ricocheted off Betts' glove and rolled behind far him toward right-center, allowing Soto to score from first.

More must-reads:

TODAY'S BEST
Anthony Edwards backs up talk to keep Timberwolves alive in WCF
Championship-winning NASCAR team to shut down after 2024 season
Three takeaways as Panthers tie Eastern Conference Final vs. Rangers
Texans sign young offensive star to huge contract extension
Aaron Boone comes to the defense of retired umpire Angel Hernandez
Negro League legend finally getting his due as MLB merges stats
Several key players withdraw from NBA Draft
Tyrese Haliburton ready to take active role in retaining Pascal Siakam
Mets stars reportedly had emotional reaction to firing of Buck Showalter
NHL announces 2024 King Clancy Memorial Trophy winner
Cardinals sign first-round DL
Rams sign first-round DE, complete draft class
Steelers QB Justin Fields focusing on 'little things' amid battle with Russell Wilson
Pistons confirm that key RFA forward underwent toe surgery
Pirates place left-hander, catcher on injured list
Patriots exec discusses team's approach to QB competition
Braves to promote No. 3 prospect for MLB debut Wednesday
Diamondbacks release veteran infielder
Packers' former first-round pick planning to make 'monster leap'
NFLPA finalizing proposal for major change to offseason schedule