CHARLESTON, S.C. -- Freshman Christian Lowry hit a walk-off single in the bottom of the 18th inning to lift No. 1 Virginia to a 5-4 win against Marist on Sunday at Joseph P. Riley, Jr. Park.

The Cavaliers (7-0) played the longest game by innings in program history, topping a 17-inning contest that also occurred in Charleston on Feb. 26, 2006, against College of Charleston. Sunday's contest lasted five hours and eight minutes.

Virginia's weekend series with Marist was shifted to Charleston earlier this week after the recent and projected inclement weather in Charlottesville.

Lowry's single was his first college hit. Making his first start at DH, Lowry was one of six freshmen in the Cavaliers' starting lineup. Ernie Clement led Virginia with four hits as UVa finished the day with 13 hits. Matt Thaiss recorded three hits, including the leadoff single in the 18th inning that led to him scoring the winning run. Graham McIntire went 5-for-8 to lead the Marist offense, which also finished with 13 hits.

Virginia's pitching staff shut out Marist after the seventh inning, with the bullpen allowing just two runs on six hits during the final 11 frames. Freshman Bennett Sousa earned his first college win after pitching a scoreless 18th inning. Josh Sborz and Kevin Doherty each worked five shutout innings out of the bullpen. Starter Brandon Waddell allowed two unearned runs, seven hits and two walks while fanning five.

Marist reliever Spencer Bunting (0-1) took the loss after giving up the winning run. He worked 2.1 innings after Chris Napolitano fired 8.1 scoreless innings out of the bullpen. Starter Tyler Dearden pitched 5.1 innings, allowing two earned runs, three hits and a walk while striking out a pair.

Thaiss led off the bottom of the 18th with a single that caromed off a diving Steve Laurino at first base. Thomas Woodruff bunted Thaiss to second and Lowry sent the 1-1 offering into left center for a base hit, with Thaiss just beating the throw home to end the marathon and set off a celebration behind second base.

The teams played three scoreless innings before Virginia broke the scoreless tie in the fourth inning when Clement hit a leadoff triple to left center and scored on the next pitch when Adam Haseley lifted a sacrifice fly to center field.

After putting runners on base in each of the first four innings, Marist (0-3) capitalized with two outs in the fifth when John Brucker stroked a two-run single to right center field. UVa's bid to tie the game in the bottom of the inning was snuffed out when McIntire made a terrific diving catch to rob Lowry of extra bases with a runner on second base to end the inning.

UVa tied the game in the sixth inning when Haseley cranked a one-out double to right to bring Justin Novak home from second.

Facing reliever Jack Roberts, the Red Foxes took the lead back in the seventh inning when McIntire ripped a two-run home run to left center. UVa promptly countered in its half of the inning when Clement blooped a singled into right center, just over the glove of outstretched second baseman Ryan Lynch.

There were few major scoring threats after the seventh inning, and neither team moved a runner past first base from the 13th through 17th innings. In the top of the 18th, Marist got Brucker to second with two outs, but Clement robbed Matt Pagano of the go-ahead hit with a diving catch in short center field to end the inning.