There was a point in time where it looked like a key defensive miscue would once again cost the Red Sox dearly in their matchup against the Mariners at T-Mobile Park on Tuesday, but they were able to overcome their mistakes this time around.

In what was a close contest for most of the night, Boston used a five-run eighth inning to best Seattle, 8-4, and put an end to their two-game losing streak.

Nathan Eovaldi, making his 29th start of the season for the Sox, put together yet another solid outing, as he has consistently been doing over the past month-plus.

Over five innings of work, Eovaldi surrendered just two runs — only one of which was earned — on five hits and one walk to go along with nine strikeouts on the night.

After issuing a leadoff single to J.P. Crawford to begin things in the first, the veteran right-hander proceeded to settle into a nice groove, retiring the next nine batters he faced in order going into the top of the fourth.

Things were still scoreless at that point in time, but Red Sox slugger J.D. Martinez quickly changed that by clubbing a 414-foot solo shot off Mariners starter Tyler Anderson to give his side an early 1-0 lead on his 28th home run of the season.

That one-run lead did not last long, however, as the M’s answered with two runs of their own in their half of the fourth, though Eovaldi certainly cannot be dealt all the blame.

Following a softly-hit single from Mitch Haniger and an infield single from Kyle Seager, Ty France blooped a 228-foot RBI single to shallow center field that landed in front of Enrique Hernandez and brought in Haniger to tie things up at one run apiece.

Eovaldi then get Abraham Toro to lift a 358-foot fly ball to right field that should have gone for the second out of the inning, but was instead misplayed by Hunter Renfroe when the right fielder quite simply dropped the ball.

Seattle was able to load the bases on Renfroe’s 11th later of the year, and they took advantage of that by jumping out to a 2-1 lead on a sacrifice fly off the bat of Jake Fraley.

Still, all things considered, Eovaldi did manage to escape the fourth without giving anything else up, and he ended his day by getting out of another jam in what would turn out to be a scoreless fifth inning as well.

Finishing with a final pitch count of 95 (66 strikes), the 31-year-old hurler did not factor into Tuesday’s decision, though he did lower his ERA on the season down to 3.52.

As soon as Eovaldi’s evening had officially ended, the Red Sox made sure to het the All-Star off the hook, as Seattle-area native Bobby Dalbec greeted new Mariners reliever Anthony Misiewicz by crushing a game-tying, 367-foot solo homer off him with two outs in the sixth.

Dalbec’s 22nd big fly of the season made it a 2-2 game entering the later stages, and while Darwinzon Hernandez (1 2/3 scoreless innings) and Adam Ottavino (1/3 scoreless innings) proved effective out of the Boston bullpen, the bats broke this one open in the eighth.

Following a hard-hit leadoff triple from Xander Bogaerts that prompted the Mariners to turn to Drew Steckenrider out of their bullpen, Rafael Devers drew a hard-fought eight-pitch walk, Martinez advanced Devers into scoring position on a groundout, and then it was in the hands of the bench.

Even after Dalbec homered in his previous at-bat, Red Sox manager Alex Cora opted to have the left-handed hitting Travis Shaw pinch-hit for him, and that move paid off since Shaw loaded the bases on a walk of his own.

Next up was Kyle Schwarber, pinch-hitting for Kevin Plawecki, and coming off one his more forgettable performances in his brief Red Sox career on Monday.

With redemption on his mind, Schwarber promptly unloaded the bases by drilling a 108 mph three-run double to the right-center field gap, allowing all three of Bogaerts, Devers, and Shaw to score to give the Sox their largest lead of the night at 5-2.

Schwarber’s heroics would not mark the end of the line for the Boston rally, though, as Alex Verdugo followed by mashing a two-run home run 348 feet over the left field fence to cap off a five-run inning and put his side ahead 7-2.

From there, Michael Feliz maneuvered his way around a leadoff walk in an otherwise clean bottom of the eighth and Martinez provided some much-needed insurance by ripping an RBI single off former teammate Matt Andriese in the top of the ninth.

Now working with an 8-2 lead, Hirokazu Sawamura was only able to record the first out of the bottom of the ninth while also loading the bases.

Austin Davis, meanwhile, took over for Sawamura, allowed two of the three base runners he inherited to score on a sacrifice fly and base hit, but ultimately closed things out to preserve an 8-4 victory for the Sox.

With the win, not only do the Red Sox snap a two-game skid to improve to 82-65 on the season, but they also move into a virtual three-way tie with the Yankees and Blue Jays for the top American League Wild Card spot.

Next up: Houck vs. Gonzales

Right-hander Tanner Houck will get the ball for the Red Sox on Wednesday afternoon as they look to secure a series victory over the Mariners, who will counter with left-hander Marco Gonzales.

First pitch Wednesday is scheduled for 4:10 p.m. eastern time on NESN and MLB Network.

More must-reads:

TODAY'S BEST
Former NBA star to become owner of overseas expansion team
Dodgers' two-time All-Star shut down after rehab setback
Kylian Mbappe to continue incredible career with Real Madrid
49ers expected to sign productive pass-catcher from NFC East
Luka Doncic looking to make history as a star in NBA Finals
Suns expected to retain key swingman
Report: Astros RHP may require season-ending surgery
Report: Padres infielder facing lifetime ban for betting on baseball
Bucks looking to pilfer Celtics coaching staff?
Cavaliers granted permission to interview Timberwolves assistant
Watch: One play that epitomizes the athleticism of the late Larry Allen
Report: Mariners to sign former Nationals top prospect
Are the Washington Commanders considering another name change?
Veteran safety to try out for Chargers as part of comeback attempt
Orioles designate recently acquired right-hander for assignment
Chennedy Carter's coach addresses flagrant foul on Caitlin Clark: 'Not appropriate'
Talks between Cowboys, WR CeeDee Lamb expected to pick up
Orioles to promote versatile prospect
Team Penske exec says team 'never lost faith' in Austin Cindric amid winless streak
Former All-Star feels Stephen Curry is 'not a generational talent'

Want more sports news?

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