SAN DIEGO — Playoff baseball will return to Petco Park next week.

On Saturday, two nights after clinching a third consecutive postseason berth, the San Diego Padres beat the Arizona Diamondbacks 10-7 to secure the National League’s No. 4 seed and home-field advantage in their Wild Card Series against the Chicago Cubs.

In a game that felt like a playoff preview, Padres third baseman Manny Machado hit his 30th home run of the season — and the 399th of his career — in the bottom of the fourth. The three-run go-ahead shot came after San Diego manager Craig Stammen went to his bullpen, lifting starter Walker Buehler with a 4-3 deficit, in the top of the fourth.

For the first time in their history, the Padres (90-71) have won at least 90 games three straight seasons. Beginning Tuesday at Petco Park, they will host the Cubs in a best-of-three series and a rematch of last year’s Wild Card Series at Wrigley Field, where Chicago won a decisive third game.

“They’re a great team. They’ve got a lot of great players, a good coaching staff, so it’ll be tightly contested,” Stammen said. “They’re the ones that knocked us out of the playoffs last year, so we’re going to have to bring our ‘A’ game.”

The Padres are 50-30 at home. They finished 40-41 on the road and 1-5 overall against the Cubs (88-73).

The two teams completed their season series July 1 at Wrigley Field, with the Cubs handing the Padres their most lopsided loss ever (23-3). Later that month, the Padres embarked on what has become an MLB-best 40-18 run. In that span, they are 23-6 at Petco Park.

“We would love to bring the playoffs, the wild-card (series) home, and then you never know,” new Padres owner José E. Feliciano said Thursday at Dodger Stadium after the team clinched a playoff berth. “We have demonstrated that we can beat anybody right now. We’re the best team in baseball right now, so bring it on.”

Petco Park last hosted playoff games in 2024, when the Padres swept a Wild Card Series against the Atlanta Braves before falling to the Los Angeles Dodgers in the NLDS.

San Diego right-hander Michael King will start Tuesday’s postseason opener.