The York Revolution mounted a two-run, ninth-inning rally to level the score against the Southern Maryland Blue Crabs at 3-3 on Thursday night.

Then, with one swing of the bat in the bottom of the frame, all the hard work went for naught.

Jovan Rosa's two-run home run in the bottom of the ninth earned Southern Maryland (9-11) the walk-off victory over York (11-9), 5-3, helping the Crabs avoid the series sweep.

Revs' reliever Stephen Penney entered the ninth inning trying to get York into extra innings after it rallied back to tie the game in the top half of the ninth, but he failed to record an out. He allowed a leadoff single to Grant Zawadzki, who then advanced to second on a throwing error. On the sixth pitch of Rosa's at-bat, he launched the winning home run to send the 2,216 fans at Regency Furniture Stadium home happy.

The Revs got the scoring started in the top of the second when Salvador Paniagua delivered a two-out RBI single, scoring Andres Perez. The hit was also Paniagua's 300th in a York uniform, becoming the seventh player in franchise history to reach that milestone.

But, after giving up single runs in the bottom of the fourth, sixth and seventh innings, the Revs found themselves trailing with only three outs to go and with their five-game winning streak on the line. Salvador Paniagua kept the game alive with a two-out, two-strike single and then James Simmons tied the game at 3-3 with a two-run blast.

Matt Neil pitched a strong game for York, going six innings, allowing two runs, one earned, on four hits, with four strikeouts. Reliever Luis Perdomo pitched the seventh in relief of Neil, giving up an earned run on two hits and a strikeout. Ron Schreurs pitched a scoreless eighth, striking out two in the process. The loss for Penney dropped his record to 3-3.

Erik Hamren earned the win for Southern Maryland, despite blowing the save, allowing two runs, both earned, on two hits and two walks, yet still striking out the side. Starter Brian Grening tossed six innings of one-run ball, allowing five hits and striking out four.

With the defeat, the Revs fell two games back of the Lancaster Barnstormers in the Atlantic League Freedom Division second-half race.

York now heads to Camden to begin a three-game series on Friday. First pitch for that game is scheduled for 7:05 p.m. at Campbell's Field.