OAKLAND, Calif. — Sean Manaea fought early command issues for his first win since June 29 as the Athletics downed the Mariners 6-3 on Friday night to end the Mariners’ six-game winning streak.

Manaea, who pitched Andrean to the 2010 Class 3A state championship, improved to 4-7 on the season as he allowed three runs over six innings, giving up three hits, walking three and striking out four.

The Athletics’ Marcus Semien matched his career-high with four hits and sparked two big innings while batting second for the third consecutive game.

“It felt great,” Semien said. “That’s the goal every night. It’s not going to happen every night but you work hard every day in the cage and BP to do that.”

Semien began the year batting ninth in the A’s lineup but an injury to Jed Lowrie opened a spot near the top of the order. For the last three weeks, Melvin has used Semien more and more to fill that hole.

It’s worked out well, too. Over his last eight games Semien is batting .400.

“He can hit anywhere in the lineup,” Melvin said. “This the first time he’s had any significant time in the two hole against righties. One of the reasons is Jed (Lowrie) is out ... but you can’t ignore 23 home runs and second on our team in RBIs.”

Yonder Alonso hit a tiebreaking two-run single in the sixth inning off rookie Joe Wieland, Khris Davis added his career-high 28th home run and Stephen Vogt had an RBI double and scored twice to help the A’s to their fourth win in five games.

Kyle Seager homered and Shawn O’Malley added two hits for the Mariners.

The Mariners hit into inning-ending double plays in the first, second and third innings and failed to score after Manaea walked the leadoff batter each time.

“We didn’t do a whole lot offensively,” Seattle manager Scott Servais said. “It was like groundhog day: double play, double play, double play the first three innings.”

Ryan Madson retired three batters for his 25th save.

Oakland broke the game open in the sixth with five consecutive singles, including Alonso’s tiebreaker.

Alonso, who also singled in the eighth, is hitting .361 over his last 11 games.

Wieland (0-1), acquired from the Dodgers in the offseason, allowed six runs and nine hits with three strikeouts in his Mariners debut.