With one sweet swing, Jose Ramirez pushed the Cleveland Indians into the playoffs and strengthened his case for the AL MVP award.

Ramirez hit a three-run homer with two outs in the 10th inning, giving Cleveland a 5-3 win over the Chicago White Sox that clinched a postseason berth Tuesday night.

Ramirez's drive to right off Jose Ruiz scored Cesar Hernandez and Francisco Lindor, setting off a wild celebration at home plate as the Indians reached the postseason for the fourth time in five years.

"Once I hit it, I knew it was a home run because I got it right on the barrel," said Ramirez, who is hitting .500 (14 of 28) with six homers and 16 RBI in his past seven games. "There was a lot less champagne than usual, but it was still a good celebration."

Lindor had pulled Cleveland within one on a two-out double that plated Roberto Perez, who began the inning on second base.

After Matt Foster (5-1) walked Hernandez, Ruiz entered and gave up the game-ending drive.

"That's unbelievable what Jose did," Indians acting manager Sandy Alomar Jr. said. "He's a tough guy, a clutch guy."

AL Central-leading Chicago lost for the fourth time in five games, creating a log jam at the top of the division.

N.Y. Yankees 12, Toronto 1: Gerrit Cole limited the Toronto to five hits over in his final preparation for the playoffs in a rout over the host Blue Jays.

Houston 6, Seattle 1: Martin Maldonado hit a three-run homer, Framber Valdez struck out eight to set career highs for wins and strikeouts, and the visiting Astros beat the Mariners to close in on their fourth straight playoff berth.

Boston 8, Baltimore 3: Nick Pivetta struck out eight in five innings of one-run ball in his Boston debut, Christian Vazquez hit a three-run homer and the host Red Sox beat the Orioles.

National League

Atlanta 11, Miami 1: Bryse Wilson pitched five scoreless innings, Marcell Ozuna drove in five runs with four hits that included two homers and the Braves clinched their third straight NL East title by beating the visiting Marlins.

Milwaukee 3, Cincinnati 2: Tyrone Taylor homered, Eric Sogard doubled home the go-ahead run in the seventh inning, and the host Brewers rallied for a victory over the surging Reds.

Washington 5-2, Philadelphia 1-1: The Phillies tumbled out of a playoff position, getting swept in a doubleheader by the Nationals.

San Francisco 5, Colorado 2: The Giants homered twice, and the bullpen did the rest to shut down the visiting Rockies.

Pittsburgh 3, Chicago 2: Jacob Stallings hit a solo home run in the bottom of the ninth inning and the host Pirates stalled the Cubs' bid to win the NL Central.

Interleague

L.A. Dodgers 7, Oakland 2: The Dodgers crushed four home runs and got five solid innings from Dustin May, clinching their eighth consecutive NL West title. The result gives them the No. 1 seed for the expanded 16-team postseason.

N.Y. Mets 5, Tampa Bay 2: Pete Alonso and the New York Mets prevented Tampa Bay from clinching the AL East crown, beating the Rays behind three home runs.

St. Louis 5, Kansas City 0: Austin Gomber tossed six innings of four-hit ball in a crucial spot start and the host Cardinals capitalized on some erratic pitching from Brady Singer, beating the Royals.

Arizona 7, Texas 0: Carson Kelly had a three-run homer, Caleb Smith and Riley Smith combined to throw a six-hitter and the host Diamondbacks rolled to a victory over the Rangers.

L.A. Angels 4, San Diego 2: Max Stassi had two impressive home runs among his four hits, Griffin Canning struck out 10 in six crafty innings and the Angels beat the host Padres.