Michael Brewer threw two touchdown passes and Virginia Tech held on to upset No. 19 Duke 17-16 on Saturday.

Brewer was 12 of 23 for 138 yards with touchdowns of 15 yards to Hodges and 10 yards to Isaiah Ford.

The Hokies (5-5, 2-4 Atlantic Coast Conference) avoided their first in-season four-game losing streak since 1992 and earned their second road victory over a ranked team this year.

Duke (8-2, 4-2) had two late chances to reclaim the lead, but Ross Martin missed a 40-yard field goal with 2:26 left and the Blue Devils were stopped on downs at their 40 with 43 seconds left.

Anthony Boone was 18 of 40 for 181 yards with two interceptions and Josh Snead scored the lone touchdown for the mistake-prone Blue Devils, who began the day alone atop the Coastal Division.