A three-pointer by freshman guard Reece Beekman as the final second ticked away allowed Virginia to escape with the victory.
Following a Florida State loss earlier in the day, the door was open for Virginia to prevail in winning the ACC regular season title.
After 15 straight wins at John Paul Jones Arena, Virginia had their streak snapped by NC State on Wednesday.
Virginia now boasts a seven-game winning streak against the rival Tar Heels.
The Virginia men's basketball team picked up their third straight win after knocking off Georgia Tech for the second time this season.
Despite leading in the first half, Virginia struggled on both ends of the floor in the second frame, ultimately leading to their first ACC loss of the year.