On September 28, 2011, Longoria hit a walk-off home run in extra innings against the New York Yankees to give the Rays an 8–7 victory, and more importantly, a spot in the playoffs. Earlier in the month, the Rays were facing a deficit of nine games in the wild card race to the Boston Red Sox. However, an epic collapse of the Red Sox, where they went 7–20 in the final games of the year, and a surge of the Rays, allowed them to overtake the Red Sox and eliminate them on the final day of the regular season. Longoria's home run came just three minutes after the Red Sox suffered a walk-off loss to the Baltimore Orioles.