With a 4-1 victory over the Boston Red Sox on a rainy Thursday night in the Bronx, the Yankees clinched a wild-card spot for their first postseason berth since 2012.
The Yankees scored twice in the second inning when Carlos Beltran hit a bases-empty home run and Brendan Ryan added an R.B.I. single. Greg Bird and Rob Refsnyder later hit solo homers to ensure that the Yankees would avoid a four-game sweep.
For the second night in a row, Mookie Betts hurt the Yankees, going 2 for 4 and driving in a run for the Red Sox.