BALTIMORE (AP) -- The Seattle Mariners finally got some pitching to back up a strong showing by their potent offense, and the result was a long overdue victory.
Michael Saunders homered twice and drove in five runs, Erasmo Ramirez retired 18 of the first 20 batters he faced and the Mariners beat the Baltimore Orioles 8-4 Saturday night to end a four-game losing streak.
Saunders hit a three-run drive in the fifth and added a clinching two-run shot in the ninth. It was his fifth career two-homer game, the second this season.
Justin Smoak homered and went 3 for 3 with two walks for the Mariners, who had lost 10 of their previous 12 games against Baltimore. Brad Miller had three hits and Kendrys Morales singled twice in his fifth straight multihit game.
Seattle scored 24 runs in its previous four games - all of them defeats, including 11-8 to Baltimore on Friday night.
''We've been swinging the bat really well lately,'' Saunders said. ''We lost a couple heartbreakers, played well in Boston although we got swept. We were able to put up some runs tonight, Erasmo did a great job on the mound and went deep in the ballgame, which is huge for us because we've been using our bullpen quite a bit the last handful of games.''
Ramirez (3-0) gave up four runs and four hits in six-plus innings to win his third straight start. The right-hander struck out six and walked none.
''Everybody (contributed) something in the game and maybe that was the reason we won today,'' Ramirez said.
Solo home runs by Matt Wieters and Manny Machado were the only flaws in his performance through the sixth. He was lifted after giving up two hits to open the seventh. Both runners ultimately scored to cut the Mariners' lead to 6-4.
Danny Farquhar got four outs for his first major league save.
Seattle got 15 hits and drew seven walks. If not for a 5-for-18 performance with runners in scoring position, the Mariners would have easily scored in double digits and wouldn't have needed Saunders' second homer to breath easily.
''We're always looking to extend the lead, obviously,'' Saunders said. ''To get a couple more cushion runs in the ninth there I'm sure took some pressure off Farquhar.''
Making his sixth start with Baltimore since being traded from the Cubs, Scott Feldman (2-3) allowed five runs, seven hits and four walks in 4 2-3 innings.
That was the beginning of a horrid night for Baltimore pitching.
''We were fortunate, they could have scored a lot more runs,'' manager Buck Showalter said.
Baltimore shortstop J.J. Hardy missed his first game of the year after Showalter opted to give him a day off. Hardy and Machado had started 150 consecutive games together on the left side of the infield, the fourth-longest streak since 1946, according to STATS.
Seattle took control with a four-run fifth that made it 6-2. With two outs and a runner on second, Michael Morse hit a broken-bat RBI single. Smoak followed with a single to chase Feldman, and Saunders greeted T.J. McFarland with his ninth home run, the second in two nights.
Showalter was ejected by home plate umpire Larry Vanover in the seventh for arguing a called strike on Nick Markakis. After the ejection, Markakis singled and went to third on a double by Adam Jones before Charlie Furbush gave up a sacrifice fly to Chris Davis and an RBI single to Wieters.
Saunders' second homer of the game short-circuited the comeback bid.
Feldman got off a shaky start, allowing a leadoff single and a walk before striking out Raul Ibanez with two outs and runners at second and third.
In the second, Smoak drove a hanging curveball over the right-field wall. Wieters answered in the bottom half, ending an 0-for-25 drought with his 15th home run.
Ibanez stranded two more runners in the third, but Seattle went up 2-1 in the fourth. With the bases loaded and one out, Miller hit an opposite-field bloop to left that dropped in front of Nate McLouth. All three runners went halfway down the basepaths, uncertain if the ball would be caught, and Smoak was thrown out on a rare 7-5 force that produced a run.
Machado tied it in the Orioles half with his 10th home run.
NOTES: Machado hit his major league-leading 40th double, his first in 23 games since July 6, in the eighth. ... Orioles RHP Jason Hammel, who's on the DL with a right flexor mass strain, had an MRI that revealed inflammation of the ulnar nerve. ''It came back as about as good as it could have been,'' he said. ... Orioles 2B Brian Roberts became a father Saturday. The couple named the boy Jax, and Showalter says Roberts could return from paternity leave on Sunday. ... Former Orioles pitcher Joe Saunders will start the series finale Sunday for the Mariners. Baltimore will counter with LHP Wei-Yin Chen. ... Seattle's Nick Franklin went 0 for 4 and is hitless in his last 21 at-bats. ... Kyle Seager walked twice, but his 10-game hitting streak against the Orioles ended. ... After the game, the Orioles optioned RHP Steve Johnson to Triple-A.