In peril of suffering their second consecutive shutout and their second consecutive sweep, the Astros finally came to life with six runs in the ninth inning to snap their six-game losing streak.

Down to their final two outs with the bases loaded in the ninth, Chris Carter hit a two-run double to left field to help snap the Astros’ 17-inning scoreless streak before a crowd of 13,823. With the 6-1 victory, the Astros put an end to their fourth six-game losing skid of the season.

The Astros had not come from behind in the ninth to win since they beat the Reds last Sept. 7.

Until Carter’s shot, it appeared as though the Astros were going to waste Jordan Lyles’ career-high 10-strikeout performance.

Lyles held the Mariners to three hits and two walks with a career-high 10 strikeouts over seven scoreless innings. He had to settle for a no-decision because the Astros couldn’t muster any attack against righthander Jeremy Bonderman, who threw eight scoreless innings.

The Astros capitalized after Seattle closer Tom Wilhelmsen took over in the ninth. Jason Castro led off with a single up the middle, and J.D. Martinez added a single to left. After Carlos Corporan sacrificed the runners over, Carlos Pena drew an intentional walk to load the bases.

Carter then hit a two-run double off the left field wall, giving the Astros a 2-1 lead. After Matt Dominguez was intentionally walked, Brandon Barnes hit an RBI single to left off Yoervis Medina. One out later, Jose Altuve drove in two more runs with a single to center. Another run scored when Trevor Crowe drew a bases-loaded walk off Charlie Furbush.