The Los Angeles Dodgers clinched their return to the NLCS in dramatic fashion on Thursday night.

The Dodgers won in the 11th inning on an errant throw by Philadelphia Phillies reliever Orion Kerkering that allowed the game-winning run to score.

Los Angeles now awaits either the Milwaukee Brewers or Chicago Cubs in the NLCS. Milwaukee currently owns a 2-1 series lead over its National League Central rival.

Over in the American League, the Detroit Tigers and Seattle Mariners play Game 5 on Friday night to determine which team faces the Toronto Blue Jays in the ALCS.

Updated MLB Playoff Schedule

Game 5: Detroit at Seattle (8:08 p.m. ET, Fox)

Game 5 (if necessary): Chicago at Milwaukee (8:08 p.m. ET, TBS)

The Dodgers are back in the NLCS for the second straight year and the fourth time in six years.

Los Angeles outlasted the Phillies over 11 innings in Thursday’s Game 4 to advance into the next round.

The Dodgers now have some time to reset their rotation ahead of NLCS Game 1 on Monday night.

Shohei Ohtani, who would have started NLDS Game 5 in Philadelphia on Saturday, is the likely candidate to begin the NLCS for the Dodgers.

The Dodgers will have Blake Snell, Yoshinobu Yamamoto and Tyler Glasnow available on regular rest for the first four games of the NLCS.

Milwaukee has a chance to finish off its series with the Cubs on Thursday night at Wrigley Field.

The Brewers threw Freddy Peralta in NLDS Game 4, so he would likely pitch NLCS Game 2 on full rest.

If the Cubs win again at home, they will head back to Milwaukee for Game 5 on Saturday.

The Dodgers would travel to Milwaukee for Games 1 and 2 if the Brewers close out the Cubs. Los Angeles would be at home for the Games 1 and 2 if the Cubs complete the series comeback.

The ALCS matchup will be set on Friday night. The Tigers will put Tarik Skubal up against George Kirby and the Mariners in a rematch of the ALDS Game 1 meeting that went 11 innings.

Toronto will host whichever team advances from Friday night in Games 1 and 2 of the ALCS. The ALCS will start on Sunday night.