The Cubs are back in the NLDS after beating the Nationals 4 – 1 in the final regular-season game in the new ballpark.

The Cubs won their fourth straight game in Chicago and beat the New York Mets 4-2 on Sunday night to clinch a spot in the National League Championship Series.

They are three games behind the Braves for the top wild card spot in baseball.

The Mets have three games in hand.

It will be the Cubs’ first trip to the NLCS since 1998, when the Cubs beat the Cardinals in six games in St. Louis.

New York, which had a 10-game winning streak, lost six straight games in a row and now has four straight losses.

The Nationals are still alive in the race for the NL East, with the Braves leading the division by a game.

But the Cubs have a chance to tie the Braves with the second wild card, a first-place tiebreaker, in the standings.

Chicago, which won the NL Central, has lost seven of its last eight games and is riding a seven-game losing streak.

Bryce Harper and Adam Eaton each had three hits for the Cubs, who outhit the Mets 9-1 in the second inning.

Harper, who went 7 for 8 with two doubles and a home run, has a season-high 15 RBIs.

He’s hitting .317 with seven home runs and 20 RBIs in his last seven games.

The left-hander allowed four runs in six innings.

“I think we were just trying to stay alive,” Harper said.

“We just kept making mistakes.

It’s hard to explain but it’s just hard to control the offense.”

Harper hit his second homer in as many games since being traded to Washington on July 28.

The third homer came in the fifth inning and was Harper’s second in a span of 10 pitches.

The Rockies (10-15) won the opening game of a four-game series against the Nationals in St, Louis.

The Reds won three straight in Cincinnati before the Cubs came back to win three of the next four.

The Braves will face the Brewers (8-17) on Monday night.

The Phillies (10) will host the Cardinals on Monday.

The Marlins (8) and Cardinals (7) will play in the AL Wild Card Game on Tuesday.

The Dodgers will play the Yankees on Wednesday.

The Giants (5-13) will take on the Nationals on Thursday.

The Astros (6-14) will face Arizona on Friday.

The Tigers (6) and Rockies (5) will head to the Arizona Diamondbacks for a Thursday game.

The Brewers (4-17), Rockies (2-17, 0-6), and Blue Jays (4) will join the Braves in the first game of the NL Wild Card Series on Sunday.