The Texas Rangers had a chance for their third straight American League West title as the Major League Baseball regular season concluded Wednesday, but fell short as the Oakland Athletics won 9-5.

The win gave the A’s the division title.

Oakland became just the fifth team in MLB history to come back from a deficit of 13 games to win a division title.

Veteran Ryan Dempster got the start for Texas, but lasted only three innings after giving up five earned runs off six hits. Derek Holland came on in relief for Dempster, tossing two and two-thirds innings giving up one earned run off three hits.

The momentum shifting moment came in the fourth when Josh Hamilton dropped a fly ball in center field for a two-run error that put the A’s ahead 7-5 in a six-run fourth inning.

The Rangers will play in the wild card play-off game Friday against either New York or Baltimore depending how the rest of the Wednesday’s games play out.

Full box score here.