MIAMI (AP) -- Virginia Tech had one bad week this season. The Hokies have been perfect in all others.
Their reward is another shot at an Atlantic Coast Conference championship.
Ryan Williams ran for 142 yards and two touchdowns, including a career-long 84-yarder with 13:24 remaining, as No. 14 Virginia Tech beat No. 24 Miami 31-17 on Saturday to clinch the ACC's Coastal Division title. The Hokies (9-2, 7-0) won their ninth straight, the program's longest streak since 1999, and will get an opportunity to play their way into the Orange Bowl in Miami's home stadium Jan. 3.
Tyrod Taylor's 18-yard keeper with 6:25 left sealed it for Virginia Tech, which beat Miami for the 11th time in 16 meetings.
Danny Coale added four catches for 83 yards and a touchdown for the Hokies, who gave up 464 yards but intercepted Miami freshman quarterback Stephen Morris three times in the final 9 minutes.
Lamar Miller rushed for a career-best 163 yards and a touchdown for Miami (7-4, 5-3), which has not won the ACC since joining in 2004.
Virginia Tech opened the season with a loss on Labor Day to Boise State, then got stunned five days later against lower-division James Madison - at home, no less - in a game that seemed to suggest the Hokies weren't going to be factors in the ACC.
Next week, the Hokies will have a chance to be the first team to go unbeaten in the ACC since Florida State in 2000.
For the second straight year, it was Williams doing the damage to Miami.
He ran for 150 yards and two scores last season when Virginia Tech dismantled the Hurricanes 31-7 in Blacksburg, but was kept relatively in check until the fourth quarter Saturday.
Then on his first touch of the final period, Williams went up the middle - and gone.
A one-play drive for 84 yards gave the Hokies the lead for good, and after Jayron Hosley - a South Florida native - intercepted Morris with 9:01 left, the Hokies were in total control. Taylor ensured he would be part of his third win in four tries against Miami 2 1/2 minutes later, then threw up the Hurricanes "U" symbol in celebration.
He got flagged for 15 yards, but it didn't matter.
Morris completed 15 of 33 passes for 202 yards for Miami, and Leonard Hankerson caught six of those throws for 79 yards and his 12th touchdown of the year, breaking Michael Irvin's single-season record set for the Hurricanes in 1986.
Coale's 43-yard touchdown catch with 5:32 left in the third - on blown coverage by Miami - gave Virginia Tech a 17-10 lead. The Hurricanes tied it on Miller's 4-yard run less than 2 minutes later, but it was all Hokies the rest of the way.
Virginia Tech withstood all the big hits Miami had to offer. On one first-half series, Hokies receiver Marcus Davis was down for about 4 minutes, shaken up after getting gang-tackled by four converging Miami defenders; Taylor was sidelined for one play after getting drilled by Colin McCarthy; Coale's helmet was knocked off as he made a 24-yard catch; and right guard James Brooks had his helmet ripped off two plays later.
Not only did Virginia Tech take all those shots, the Hokies landed the blow that mattered most in that series - Williams' 14-yard run with 51 seconds left in the first tied the game at 7-7, capping a 12-play, 88-yard drive that began after a fourth-down fumble by Miami.