COLLEGE PARK - Seth Allen took over in overtime, minutes after Dez Wells had taken over the second half.

And Maryland's fans took over the court at Comcast Center, where most of the sellout crowd rushed the floor and celebrated the Terrapins' 75-69 victory over fifth-ranked Virginia.

Notching their first signature win of an otherwise disappointing season more than added to Sunday's significance - Maryland bid farewell to the Atlantic Coast Conference in thrilling fashion, and the Terps overcame a last-second regulation comeback from the Cavaliers to do it.

"At the end of the regulation I looked at Dez and told him that we're not going to lose," Allen said. "He looked at me and he was like, 'We've got to take over,' so that's what we tried to do."

Allen scored five of his team-high 20 points in OT to help Maryland finish its regular season at 17-14, 9-9 in the ACC. Wells scored 14 of his 18 points in the second half. And when the Terrapins held on in the final minute, with Virginia hoisting up 3-pointers in vain, Comcast felt ready to burst.

The Cavaliers (25-6, 16-2) still head into the ACC tournament as the top seed and regular-season champs, but 75 points was the most they've surrendered all year, and they lost for the first time since Jan. 13.

Maryland fans honored 61 years of ACC membership before and during Sunday's game, with former Terps players and coaches getting their share of video time and accolades from the crowd.

Gary Williams sat courtside, not far from the likeness of his signature etched on the Comcast floor. Steve Francis, sporting a Len Bias No. 30 green Celtics jersey, joined his former coach for a bit.

Tom McMillen, a Comcast regular, strode out for a wave. Cameras found football star Torrey Smith and national champion basketball player Tahj Holden.

Fans held signs with everything from Big Ten logos to "ACC Thanks For The Memories" and "AC-C Ya."

There wasn't too much fanfare, but the atmosphere was different.

"Today just wasn't an ordinary game," Maryland coach Mark Turgeon said. "We always play for Maryland, but today we played for former players, former coaches, all our fans."

The fans were treated to an upset win behind Wells' big second half and Allen's play-making in overtime. Maryland appeared poised to win it in regulation, but those hungry to rush the court had to retreat when Virginia forced OT.

Two free throws from Jake Layman gave the Terps a 64-61 lead with four seconds to go, and rather than let the Cavs set up a desperation 3-point try, Turgeon elected to foul after the in-bounds pass. Virginia's Malcolm Brodgon made one of two free throws, only to have the Cavaliers keep the ball with an offensive rebound.

And then they tied it at the buzzer when Anthony Gill got space in the lane off a screen, caught an entry lob pass and sank a jumper from about 10 feet away.

"Guys, I don't ever foul," Turgeon said. "But it's been the strangest year I've ever been a part of. I said, 'I'm going to do things backwards, because we haven't won any close games.'"

Turgeon said the mood was sour just before overtime as he tried to assure his players the outcome had yet to be decided.

"I said, 'Let's make this the best five minutes of the game.' They didn't believe me the first time I said it, but I probably said it about 15 times in that timeout," Turgeon said. "I said, 'Let's make this the best five minutes of our year,' and I think we did."

Allen netted five straight points to start overtime and Maryland led 69-64 with Comcast frothing. Virginia's Evan Nolte converted a three-point play at the other end, but Wells answered with a slashing layup and the Terps led by four.

The Cavaliers cut the deficit to 71-69 with 1:11 to go, but got no closer. Layman added four free throws in the final 38 seconds, and Maryland shot 80 percent from the line (24 for 30) to keep Virginia at bay.

Evan Smotrycz had 13 points (all in the first half) on 5 of 7 shooting, and Layman finished with 10 points and eight rebounds.

Gill led Virginia with 15 points and London Perrantes had 14, although 12 of them came in the first half on four 3s. Brodgon and Joe Harris, who scored a game-high 19 in the Cavs' 61-53 win over the Terps a month ago, each netted 12.

It's onto the ACC tourney from here, where Maryland hopes its season continues into next weekend.

The Terrapins are the eighth seed will play No. 9 seed Florida State at noon Thursday in the ACC tournament quarterfinals.

"We play our best in tournament games. That's been shown the last year and a half," Wells said.

"We have to go out there and execute like we know how and keep this momentum going."