MIAMI -- Newly acquired Twins reliever Sam Dyson caught a flight Thursday morning in Philadelphia, arrived at Marlins Park an hour into the game and found himself pitching in the ninth inning on three hours' sleep.
The AL Central-leading Twins revamped their bullpen after watching a whopping lead over Cleveland dwindle in the last month. Minnesota obtained reliever Sergio Romo in a trade with Miami over the weekend and acquired Dyson from San Francisco in a deadline-beating deal Wednesday.
Romo pitched a perfect eighth and turned a 4-1 lead in the ninth over to Dyson, who had a 2.47 ERA in 49 games for the Giants this season. Dyson faced four batters and allowed two walks, a single and an RBI double by Jon Berti before being pulled.
"It's a bad first impression," Dyson said with a chuckle. "Hopefully there are no more of those. I haven't walked too many guys this year -- that's the bad thing of the whole situation. I didn't have it, and that's about it."
Twins manager Rocco Baldelli acknowledged he would be second-guessed for calling on Dyson.
"It made sense to get him in," Baldelli said. "It's a fairly high-leverage situation. He's going to pitch in big spots like that for us the rest of the year. I thought it fit well."
Ramirez hit his seventh homer against Cody Stashak (0-1) to avert a three-game sweep.
"Really, I just tried to get on base," Ramirez said. "I tried not to do too much because we needed someone on base."
The walk-off win was the Marlins' third this season, and all have come since July 18.
"Really excited about that win," manager Don Mattingly said. "We're proud of everything that happened today."
Minnesota's Michael Pineda allowed one run in six innings and departed with a three-run lead.
"Sometimes we have a bad game," Pineda said. "But this is a really good team and we're going to play better tomorrow, and we're going to win."
Neil Walker tied the game in the ninth with a two-run single off Taylor Rogers, but the left-hander struck out Jorge Alfaro and Bryan Holaday with the bases loaded to force extra innings. Miami won despite stranding 13 and going 2 for 10 with runners in scoring position.
Marlins starter Jordan Yamamoto allowed four runs in six innings.
Jeff Brigham (1-0) earned his first career victory with two perfect innings, including a 14-pitch showdown with Kepler, who flied out.
"That battle with Kepler was a lot of fun," Brigham said. "It kind of wore me out. I made some good pitches, and he made some good swings."
Before the game, the Marlins recalled RHP Kyle Keller from Triple-A New Orleans.
Marlins: SS Miguel Rojas left the game with right hip tightness. His status is day to day.
Twins: LHP Martin Perez (8-4, 4.38) is scheduled to start Friday when the Twins open a 10-game homestand against Kansas City.
Marlins: Following a rare Friday off, Miami begins a two-game series at the Rays on Saturday, when Elieser Hernandez (1-4, 4.93) is scheduled to start.
More AP MLB: https://apnews.com/MLB and https://twitter.com/AP-Sports
Follow Steven Wine on Twitter: http://twitter.com/Steve-Wine.
Rizzo's slam among 5 Cubs homers, Chicago rips Bucs 17-8
Anthony Rizzo hit a grand slam, Willson Contreras launched two long solo homers and the Chicago Cubs kept pace in the NL wild-card race with a 17-8 win over the Pittsburgh Pirates on Friday.
Phillies look to bolster wild-card hopes versus Red Sox
While the Boston Red Sox have bottomed out in the American League wild-card chase, the Philadelphia Phillies are still alive and well in the National League playoff hunt.
Severino: Expect same 'electric guy' in '19 debut
Yankees right-hander Luis Severino said fans can expect "the same guy that they've been watching all the past years" when he makes his first start of the 2019 season Tuesday against the Angels.
With Hand out, Indians bring up Karinchak vs. Twins
Reliever James Karinchak was added to the Indians roster on Friday as Cleveland opened a critical three-game series with the AL Central-leading Twins,
Trout scratched from anticipated return to lineup
Mike Trout was scratched from the Angels' lineup on Friday after it was expected that he would play for the first time since undergoing a procedure for a pinched nerve in a toe on Monday.
Braves OF Markakis returns after 43 games out
Braves outfielder Nick Markakis came off the injured list and was inserted into the starting lineup against the Nationals.