SEATTLE (AP) -- Nelson Cruz singled in the tiebreaking run to cap a two-run, ninth-inning rally, and the Seattle Mariners overcame a five-run deficit to beat the Texas Rangers 8-7 on Sunday for a three-game sweep.
Nomar Mazara gave Texas a 7-6 lead when he led off the ninth against Edwin Diaz (1-1) with his fourth homer.
Pinch-hitter Jarrod Dyson reached on an infield single starting the bottom half, a ball deflected by reliever Sam Dyson (0-3). Jarrod Dyson stole second and took third when Leonys Martin reached on a bunt single that Dyson fielded only to find no one covering third.
Martin stole second, pinch-hitter Mike Freeman was walked intentionally and Mitch Haniger took a low 3-1 pitch for a bases-loaded walk. Robinson Cano hit into a forceout, and Cruz hit a sharp grounder up the middle. Shortstop Elvis Andrus snagged the ball with a dive, but his off-balance flip to second was off line as Freeman scored.
Seattle trailed 6-1 before Haniger's three-run homer in the third, then tied the score 6-6 when Danny Valencia hit an RBI single in the sixth and Guillermo Heredia opened the seventh with his second big league home run, his first this year.
Haniger preserved the tie in the eighth with a leaping catch at the top of the wall in right-center to rob Joey Gallo of a potential two-run homer.
Shin-Soo Choo staked Texas to the lead with a three-run homer in the second and two-run double in the third.
Rangers starter Cole Hamels left in position to win for the third straight start but has not gotten any decisions. He allowed four runs -- three earned -- and six hits in five innings. Seattle's Hisashi Iwakuma gave up six runs and seven hits in three innings.
Mariners manager Scott Servais was ejected in the sixth inning by first base umpire C.B. Bucknor for arguing after a delayed fair call on Martin's inning-ending groundout over first base.
Rangers: RHP Matt Bush, who had not pitched since April 9 (shoulder soreness), entered in the eighth and struck out the side. He received a cortisone injection Wednesday and threw in the bullpen Saturday.
Mariners: SS Jean Segura, on the 10-day DL (strained right hamstring) continues to improve. "He's running inside on the treadmill. He hasn't let it all out on the field yet, but we've got time," Servais said. "Hopefully get him in here by the end of the week." … RHP Steve Cishek, on the 10-day DL (recovering from hip surgery) is to start an injury rehabilitation assignment.
Rangers: Texas heads to Oakland to open a three-game series Monday with RHP A.J. Griffin (1-0, 6.75), who allowed three runs in six innings in his last start.
Mariners: LHP Ariel Miranda (0-1, 5.06) starts the opener of a three-game series against Miami, Seattle's first game against a non-divisional opponent. He allowed four runs in 5 2/3 innings in his last start, a 7-5 loss to Houston.