COLLEGE PARK, Md. -- With Maryland's starting quarterback out, sophomore Caleb Rowe stepped in and played the role of hero, passing for 332 yards and a late touchdown to pull out a 27-26 win over Virginia on Saturday in an Atlantic Coast Conference game.
The 78th and perhaps final meeting of the border rivals wasn't decided until Alec Vozenelik's 42-yard field goal attempt with 10 seconds remaining sailed just wide right.
The Terrapins (5-1, 1-1) are in their final season in the ACC before moving to the Big Ten next year.
Rowe, playing for injured C.J. Brown, completed 18 of 34 passes in his second career start and his first this year. He guided the Terps 69 yards in six plays for the winning score, hitting tight end Dave Stinebaugh for a 12-yard touchdown with 5:14 remaining.
But the Cavaliers (2-4, 0-2) moved 49 yards on their final possession behind quarterback David Watford, who completed 27 of 44 passes for 263 yards in the game, before the missed field goal try.
The Terrapins also had to overcome a powerful Virginia running game. Cavaliers tailbacks Kevin Parks and Khalik Shepherd combined for 193 of Virginia's 242 yards rushing.
Parks, who had 112 yards on 28 carries, scored from 6 yards with 13:15 left in the fourth quarter to put the Cavaliers (2-4, 0-2) ahead. Shepherd finished with 10 carries for 81 yards.
Alec Vozenilek's 26-yard field goal, his fourth of the day, put Virginia up 26-20 with 7:11 to play.
But Rowe's heroics, including a third-and-21 pass to Deon Long on the winning drive, offset the Virginia ground onslaught, and the Terrapins now lead the series 44-32-2.
The Cavaliers led 16-14 at the end of a see-saw first half.
Virginia, hoping to snap a two-game losing streak, jumped to a 6-0 lead on two Vozenilek field goals.
The Terrapins, coming off last week's 63-0 humiliation at Florida State, bounced back with a big play at the end of the first quarter. Tailback Brandon Ross turned a screen pass into a 77-yard play. Two plays later, he leapt into the end zone for a 7-6 lead with 1:04 left in the quarter.
Rowe drove the Terrapins 88 yards in six plays midway through the second quarter. Ross took a pitch and scooted into the end zone from 7 yards, making it 14-6 lead with 6:40 left in the half.
Ross led Maryland with 88 yards on 14 carries.
Virginia came right back with an 81-yard drive. Watford hit tight end Jake McGee for a 4-yard touchdown with 4:33 left in the second quarter. McGee finished with eight catches for 114 yards.
Parks made a big play in the two-minute drill, turning a screen into a 35-yard gain, and Voznelik's 27-yard field goal with 19 seconds left in the half put the Cavaliers back in front.
Maryland regained the lead at 17-16 to start the second half when Brad Craddock kicked a 36-yard field goal with 12:34 left in the third quarter.
NOTES: Brown was still suffering the effects of the concussion he suffered last week at Florida State. ... Virginia senior DT Keith Urban left the game in the first half on a cart with a leg injury. ... Maryland junior LB Matt Robinson (shoulder) also missed the game. His replacement, Alex Twine, left the game in the third quarter with a shoulder injury. ... Virginia and Maryland met for the 78th time, the most the Terrapins have faced any opponent. The series began in 1919.