Facing a team for the third time in a season is always a tough challenge, but when the two split the series in very close games, the margin for error is even smaller.

NEC North champion Gloucester and runner up Danvers met for the third time in the Division 2 North Quarterfinals on Monday at Gloucester HIgh School, and a lone run decided the outcome with the Fishermen coming out on top in a 1-0 game that was scoreless until the sixth inning.

Defense and pitching were outstanding for both teams with each turning three doubles plays. Winning pitcher Sydney McKay scattered four hits, two walks (one intentional) and hit a batter.

For the Falcons, Alexcea Glynos was the tough luck loser, allowing a run on six hits with one walk and a strike out.

With the win, the second-seeded Fishermen (18-3) advance to the Division 2 North Semifinals on Wednesday at Martin Field in Lowell against No. 3 Whittier Tech (18-3). First pitch at 3:30 p.m. It is Gloucester’s second straight trip to the sectional semifinals and third trip in the last four seasons.

“We knew this was going to be a battle because we had played two very close games already,” Gloucester head coach John Nicastro said. “Danvers has gotten stronger as the season went on, and I expected this to be a one or at the most two run difference. It was such a great game, and we had a roller coaster of emotion.”

The Fishermen won the game in the home half of the sixth inning when No. 9 hitter Jemima Grow beat out an infield hit and pinch runner Rachel Rallo stole both second and third. With one down, Ella Marshall’s bunt was fielded by Glynos, who threw to catcher Kayla Robinson, but Rallo slid in safely.

“Rallo is so fast; she stole third without a throw,” Nicastro said. “We like to use her as a courtesy runner, but didn’t want to waste her. There weren’t many runners on base in this game.”

“This was a fun game to watch,” he added. “Two good teams from the NEC battling. Alexcea pitched an awesome game. When she misses the pitch is so close she gets you chasing. I know a lot of the Danvers players, and I feel bad because this was a game nobody deserved to lose.”

Down to their last three outs, the Falcons got the tying run on base when Anna Lowd beat out an infield hit, but Kaleigh Walsh hit a liner to shortstop that Marshall caught on her shot tops and fired to first to double up Lowd, it was the second double play Marshall turned on a line drive in the game. McKay got the next batter to ground out to end the game.

Unfortunately, a controversial call, or rather no clear cut signal at first base in the top of the sixth, led to confusion after it appeared Danvers had taken a 2-0 lead. With one down, Julia Ryan beat out an infield hit, and Kayla Robinson moved her over to second with a sacrifice bunt.

Alex Marie was intentionally walked, and DH Becky Zellin hit a slow roller down the first base line. When there was no clear safe or out sign Ryan raced home with Marie right behind her when the throw to third was off the mark.

But it was ruled that the inning was over and the runs did not count because Zellin was out at first base for the third out of the inning. Danvers coach Colleen Newbury’s protest fell on deaf ears.

“It is what it is, and they got their run in while we didn’t,” said Newbury. “I knew this would be a close game. Sydney was really good, and Alexcea pitched great for us. We needed to get hits with two outs, and it didn’t happen.”

On three occasions the Falcons were able to get a runner to second base, but the threats ended there.

Robinson and Zellin had the other hits for the Falcons while Maddie Machado had two hits for Gloucester including a booming triple. Grow added two infield hits, and Tracy Wood hit safely.

Danvers turned double plays to get out of trouble in the second, third, and fourth innings, taking advantage of aggressive base running by the home team which resulted in run downs. But while the earlier attempts failed, Nicastro kept his team running, and it paid off when Rallo scored the winning run.