Nick Wosika-USA TODAY Sports

Kyle Farmer delivered a walk-off single in the 10th inning as the Minnesota Twins snapped a three-game skid with a 5-4 win over the Boston Red Sox on Wednesday in Minneapolis.

The Twins had runners on second and third before Farmer's one-out single off Kaleb Ort (1-1) ended Boston's six-game winning streak.

Max Kepler homered and drove in two runs for Minnesota, which had lost five of its previous six games. Jovani Moran (1-2) pitched a scoreless 10th inning for the win.

Justin Turner homered among his two hits and drove in two runs for Boston, which went 3-for-15 with runners in scoring position.

Boston claimed an early lead in the first against Sonny Gray when Turner drew a two-out walk, stole second and scored on Rafael Devers' double.

Minnesota took its first lead of the series in the second inning on run-scoring singles off Garrett Whitlock by Kepler and Christian Vazquez.

After Turner's solo homer tied the game with two outs in the third inning, Minnesota reclaimed the lead in the bottom half of the inning when Edouard Julien scored from third on Carlos Correa's groundout.

Boston tied the game at 3-3 in the fifth inning when Alex Verdugo extended his hitting streak to 12 games with a one-out triple and scored on Turner's single to center, giving Turner 14 RBIs in his last nine games.

Gray was lifted after giving up three runs on six hits over five innings. He walked two and struck out five while throwing 92 pitches.

Kepler's one-out solo blast off Whitlock in the sixth put the Twins back on top. The homer was Kepler's ninth of the season.

Whitlock allowed four runs on eight hits with no walks and six strikeouts over seven innings.

Boston tied the game again in the eighth against Jhoan Duran when Masataka Yoshida drew a one-out walk and was replaced by pinch runner David Hamilton, who stole second and scored on Triston Casas' double.

Boston catcher Reese McGuire exited the game with a right oblique injury on a swing during the sixth inning and was replaced by Connor Wong.

More must-reads:

TODAY'S BEST
Pacers' Pascal Siakam leads team to Game 6 win vs. Knicks
Watch: Matt Duchene's 2OT winner sends Stars to conference final
Scottie Scheffler shoots improbable 66 after warming up for PGA Championship in a jail cell
Report: Tua Tagovailoa away from Dolphins amid contract chatter
Nuggets star has worrying comment about latest injury
Paul Skenes makes incredible Wrigley Field history in second-career MLB start
Giants rookie CF to undergo season-ending labrum surgery
Yankees' Juan Soto reacts to Hal Steinbrenner contract talk
Late goal sends Panthers to Eastern Conference Finals
Ex-teammate of Shohei Ohtani placed bets with same illegal bookmaker as interpreter 
Former Rams first-round pick retires from NFL after 11 seasons
Insider provides major injury update on Celtics' Kristaps Porzingis
Watch: Bruins strike first in Game 6 with incredible backhand goal
Dodgers make series of moves involving notable players
Hurricanes not expected to re-sign defenseman, center
Maple Leafs tab former Stanley Cup winner as new head coach
NFL insider expands on competition between Steelers QBs Russell Wilson, Justin Fields
NFL sets outrageous prices for Eagles-Packers Brazil game
Broncos 'very unlikely' to bring back former NFL interceptions leader
Greg Olsen offers broadcasting advice to Tom Brady

Want more MLB news?

Join the hundreds of thousands of fans who start their day with Yardbarker's Morning Bark, the best newsletter in sports.