CHICAGO: The Chicago Cubs clinched a postseason series at Wrigley Field for the first time ever, as Kyle Schwarber, Anthony Rizzo and Javier Baez hit home runs in a 6-4 win over the St. Louis Cardinals on Tuesday, winning the National League Division Series 3-1.

Only once since they last brought home the World Series in 1908 had the Cubs won a playoff series and never before had they finished off the job at their century-plus-old ballpark.

Cubs closer Hector Rondon struck out Stephen Piscotty on a pitch in the dirt, and catcher Miguel Montero scooped the ball and made the tag to end the game. That sent the players streaming out of the dugout and prompted a wild celebration among the long-suffering Cubs fans.

“They deserve it,” Rizzo said in the middle of the party. “Hopefully, this is just a taste of what’s to come.”

The Cubs are headed to the NL Championship Series for the first time since 2003, when they lost in seven games to the Florida Marlins. On that occasion, Chicago lost the final two at home, including the infamous defeat in Game 6 when a fan grabbed at a fly-ball which a Cubs outfielder was about to catch, denying Chicago a vital out.

Chicago will face the winner of the Los Angeles Dodgers-New York Mets matchup.

That series is locked 2-2 after the Dodgers won 3-1 at Citi Field on Tuesday, sending the series back to Los Angeles for a decisive Game 5 on Thursday.

Rizzo’s solo drive to right off losing pitcher Kevin Siegrist in the sixth put Chicago back on top 5-4 after St. Louis had scored two in the top half of the inning.

Schwarber’s monstrous shot leading off the seventh gave the Cubs a two-run lead and ended the scoring. The ball landed on top of the right-field videoboard.

The late drives by Rizzo and Schwarber along with Baez’s three-run homer off John Lackey in the second came after Chicago set a postseason record with six homers in Monday’s win.

The Cubs won for the 12th time in 13 games despite starter Jason Hammel being removed in just the fourth inning, having given up two runs.

Seven relievers combined to hold the Cardinals to two more runs the rest of the way.

Hammel settled down after giving up a two-run homer to Piscotty on the game’s fourth pitch. He also singled in a run with two out in the second before Baez connected against John Lackey to make it 4-2.

The Cardinals failed to advance in the postseason after winning at least one series the previous four years.

“I will be shocked if they’re not in the World Series or winning it,” Piscotty said. “They’re playing well. You got to tip your hat.”

Los Angeles ace Clayton Kershaw was pitching on just three days’ rest with the season on the line, and rose to the occasion, limiting the Mets to one run over his seven innings, and also contributing a key hit.

“Definitely happy to be going back home,” Kershaw said. “They like us a little better there.”

Kershaw’s one-out single led to a three-run third inning. Adrian Gonzalez followed with an RBI single and Justin Turner added a two-run double.

Kershaw, the reigning NL MVP and three-time Cy Young Award winner, snapped his incongruous five-start losing streak in playoff games; the longest in Dodgers history.

“There’s no curse or anything,” he said. “Just got to get through the seventh.”

He struck out eight, walked one and yielded only three hits, quieting another revved-up crowd at Citi Field as the night wore on. Daniel Murphy hit his second solo homer off Kershaw in the series, both coming in the fourth inning.

Kenley Jansen got four outs for his second save. With two New York runners on base in the eighth and the count full, he retired Murphy on a fly to right field to end the inning. He then worked a 1-2-3 ninth as the Dodgers ended a seven-game losing streak in road playoff games.

With a $290 million payroll that’s $66 million higher than any other team, the Dodgers are seeking their first pennant since winning the 1988 World Series. They’ve captured three straight NL West titles but won only one playoff series during that span — in part because Kershaw got little run support in four consecutive postseason losses to St. Louis.

New York starter Steven Matz was pitching in a big league game for the first time in 19 days after a back injury sidelined him late in the season, and lost for the first time in the majors after a 4-0 record during the regular season.

He was pulled in the fifth inning after giving up three runs and six hits.