ST. PETERSBURG, Fla. -- Jason Bourgeois capped a two-run ninth inning with a game-winning single Wednesday as the Tampa Bay Rays snapped a six-game losing streak with a 5-4 win over the Seattle Mariners.
Ben Zobrist led off the ninth against Mariners closer Danny Farquhar with a triple off the yellow boundary rail above the right field wall. He scored to tie the game when Matt Joyce tapped an 0-2 pitch well off the plate over Farquhar and up the middle, tying the game at 4.
Evan Longoria sent Joyce to third with his second double of the game before rookie Wil Myers -- who homered earlier -- was walked intentionally.
Bourgeois, inserted as a pinch runner in the sixth, fought a Farquhar pitch over drawn-in right fielder Endy Chavez for his first hit as a Ray.
Tampa Bay (67-51) pulled within three games of the Boston Red Sox in the American League East.
Farquhar (0-1) failed to convert a save for the first time in six chances since taking over the closer role.
Joel Peralta (2-5) earned the win by pitching a scoreless top of the ninth.
Rays starter David Price was charged with four runs -- all of which scored with two outs -- on five hits in seven innings. He struck out seven.
Seattle jumped to a 4-1 lead in the fifth inning by turning a two-out, bases-empty situation into a rally for the second time in the game.
Price began trouble for himself by walking Dustin Ackley. Humberto Quintero followed with a chopper than third baseman Longoria fielded but was unable to grip and throw. It was ruled a base hit. Brad Miller, who hit two home runs before almost 200 friends and family from nearby Orlando on Tuesday, then laced a two-run double to the wall in left-center. Seattle added a run on Nick Franklin's single.
Tampa Bay finally solved Seattle starter Aaron Harang in the sixth, using four hits -- including a two-run homer by rookie Myers -- to cut its deficit to 4-3. Myers followed a leadoff Longoria double with his ninth homer of the season -- tops among American League rookies. The Rays got two more singles before Charlie Furbush entered to retire three straight batters, stranding the potential tie run at third.
Harang was charged with three runs on seven hits in five innings. He walked an uncharacteristic two and struck out five.
Seattle (55-64) manufactured a run to take a 1-0 lead in the first inning. After being grazed with a high pitch from Price with two outs and the bases empty, Kyle Seager stole second and advanced to third on a wild pitch before scoring on a Kendrys Morales single up the middle.
The Rays rallied to tie the score at 1 in the fourth. Joyce led off with Tampa Bay's first hit of the game, moved to second on a walk and scored on James Loney's line-drive single up the middle. Harang recovered to strike out the next two batters and end the threat.
NOTES: The Rays will activate RHP Alex Cobb (6-2, 3.01 ERA) from the 60-day disabled Thursday to start against the Mariners. Cobb sustained a concussion after he was struck in the head by a line drive hit by Kansas City's Eric Hosmer on June 15 at Tropicana Field. He will be limited to 90 pitches. The Rays must make room for him on the 25- and 40-man rosters. ... Rays LHP Matt Moore is still experiencing discomfort in his elbow and will take three days off before throwing again. ... Tampa Bay CF Desmond Jennings (broken left middle finger) took 10 swings off a tee. He could be reinstated when eligible on Monday, said manager Joe Maddon. ... Morales, who went 2-for-4, is 21-for-45 (.467) in 11 road games since the All-Star break. ... Through Tuesday, the Mariners led the majors with 47.3 percent of their runs coming off home runs.