CHARLOTTESVILLE, Va. -- North Carolina defeated Virginia 5-2 in come-from-behind fashion Saturday from the Snyder Tennis Center.

North Carolina (12-3, 4-1 ACC) gave away the doubles point to the Cavaliers, but rallied by winning five of the six singles matches to garner a key conference victory.

Singles play was tightly contested as each team won three first sets. Virginia would take a 2-0 lead when Whitney Kay lost at No. 4 singles, but the rally started at No. 6 when Tessa Lyons defeated Marie Faure 6-3, 6-4 to cut the deficit in half at 2-1.

Sixth-ranked Hayley Carter quickly tied the match as she downed Danielle Collins 6-2, 6-2 at No. 2 singles.

Top ranked Jamie Loeb won in straight sets 6-1, 7-5 against fourth-ranked Julia Elbaba at No. 1 singles to give Carolina its first advantage of the match at 3-2.

The final two matches went to decisive third sets. At No. 3, Caroline Price dropped the opening set, but rallied to top Rachel Pierson 4-6, 6-2, 6-3 to clinch the match. Kate Vialle edged Maci Epstein 2-6, 7-5, 7-6(4) at No. 5 singles to make the final score 5-2 in favor of the Tar Heels.

In doubles, UNC took an early advantage with a win at No. 2, as ninth-ranked Loeb and Carter topped Collins and Li Xi 8-3. However, Virginia's seventh-ranked combo of Elbaba and Pierson rallied from an early 4-1 deficit to top fifth-ranked Price and Kay 8-5. No. 3 doubles would decide the opening point and that went to the Cavaliers when Epstien and Stephanie Nauta upset 32nd-ranked Vialle and Laura Slater 8-6 to give Virginia a 1-0 lead.