PORTLAND, Maine — Nate Freiman drilled a walk-off three-run homer over the Maine Monster as the Portland Sea Dogs outlasted the New Hampshire Fisher Cats 10-7 in front of a sellout crowd at Hadlock Field on Wednesday night.

With the game tied 7-7 in the bottom of the ninth, Tzu-Wei Lin led off with a single off Brady Dragmire. After a sacrifice bunt by Mauricio Dubon, Aneury Tavarez singled before Freiman homered to end the game.

The home run was Freiman’s 10th of the season, and he finished the game 2-for-3 with a home run, double, four RBIs, two walks and two runs scored.

Ben Taylor earned the win in relief, allowing just one hit over 1⅔ innings.

Kevin McAvoy had his seventh quality start for the Sea Dogs, yielding six runs (three earned) on eight hits in 6⅔ innings with one walk and three strikeouts.

Dwight Smith Jr. hit an RBI triple to score Richard Urena and start the offense for New Hampshire in the top of the first inning. Rowdy Tellez followed up with a sacrifice fly to put the ‘Cats ahead 2-0.

New Hampshire added three runs in the second, but all were unearned due to two Sea Dogs errors.

Trailing 6-3 after six innings, Portland rallied in the seventh inning to take the lead. With the bases loaded and one out, Dubon hit an RBI single to score Tim Roberson, who led off the inning with a walk. Tavarez hit a two-run single to score Danny Bethea and Lin and tie the game at 6-6. Ryan Court capped off the rally with an RBI groundout to score Dubon and put Portland ahead 7-6.

New Hampshire tied the game in the top of the eighth on an RBI infield single by Ian Parmley.