Tyler Van Dyke passed for 357 yards and three touchdowns, the last of them a 55-yarder to Mike Harley with 10:39 remaining that helped Miami hold off Virginia Tech 38-26 on Saturday night.

The win ensured Miami (6-5, 4-3 Atlantic Coast Conference) will be bowl-eligible. It also ended a six-game run of the Hurricanes playing games decided by no more than four points.

Van Dyke — who also had a 75-yard touchdown throw to Brashard Smith — became the first Miami quarterback with multiple TD passes of at least 55 yards in an ACC game since Brad Kaaya did it against Duke on Nov. 26, 2016.

Will Mallory also caught a scoring pass for Miami and Jaylan Knighton had two short touchdown runs for the Hurricanes. Mallory had a 72-yard touchdown called back as well and Van Dyke completed 19 of 33 passes.

Connor Blumrick had two touchdown passes for Virginia Tech (5-6, 3-4), along with a team-best 132 rushing yards in the debut of interim coach J.C. Price.

Starting quarterback Braxton Burmeister also had a scoring throw for the Hokies, who trailed 31-13 early in the second half before — aided by a successful onside kick — getting within 31-26 late in the third quarter.

Tre Turner, Da’Wain Lofton and Kaleb Smith had TD grabs for the Hokies.

It was the end to a difficult week for both teams, with Miami letting athletic director Blake James go on Monday and Virginia Tech announcing on Tuesday that Fuente was out with two games left in his sixth season.

For the Hurricanes, at least it was a winning end to a few tough days — and Van Dyke topped the 300-yard passing mark for a fifth consecutive game. He’s passed for 1,813 in that span, with Miami going 4-1 in that stretch.

For the Hokies, bowl eligibility now hinges on next week’s regular-season finale at rival Virginia.

Virginia Tech visits Virginia on Nov. 27.

.