Astros score twice in 9th to beat Athletics 4-2

Houston Astros pitcher Ken Giles works against the Oakland Athletics in the ninth inning of a baseball game Monday, Sept. 19, 2016, in Oakland, Calif. (AP Photo/Ben Margot)
Ben Margot/AP

OAKLAND, Calif. (AP) Marwin Gonzalez hit a tiebreaking, two-run single off Ryan Madson in the ninth inning and the Houston Astros came from behind to beat the Oakland Athletics 4-2 on Monday night.

The Astros trailed 2-1 going into the eighth inning but tied it on Jason Castro's RBI-double then scored twice in the ninth to keep their slim playoff hopes alive.

Jose Altuve and Carlos Correa opened the inning with singles. After Evan Gattis was intentionally walked, Gonzalez lined the first pitch from Madson (5-7) into center field to drive in Altuve and Correa.

Correa finished with two hits while Gattis hit his 28th home run of the season to help the Astros to their fifth straight win over the A's.

Former Oakland reliever Luke Gregerson (4-1) retired three batters for the win. Ken Giles pitched the ninth for his 12th save.