Updated

CHAPEL HILL, N.C. (AP) -- Malik Rosier threw for a career-high 356 yards with three touchdowns to help eighth-ranked Miami hold off North Carolina 24-19 on Saturday.

Rosier had a 51-yard touchdown throw to Christopher Herndon IV late in the first half and a 78-yarder to Jeff Thomas to open the third quarter. His 5-yarder to Braxton Berrios gave the Hurricanes (7-0, 5-0 Atlantic Coast Conference) a 24-13 fourth-quarter lead.

Still, Miami had to come up with a couple late plays after UNC made it a one-score game.

First the Hurricanes recovered a fumble by Jordon Brown after the Tar Heels had pushed near the Miami 35 with 2:11 left. Then Rosier ran for a chains-moving keeper near the 2-minute mark, allowing Miami to run out the clock.

Nathan Elliott threw for one touchdown and three interceptions for the Tar Heels (1-8, 0-6) after starter Chazz Surratt was knocked from the game in the opening quarter.

THE TAKEAWAY

Miami: The Hurricanes went from squeaking by in their last three wins by a combined 13 points to struggling much of the day against a 1-7 team relying on a third-string quarterback. Not the best way to go into the November stretch run, even as they remain unbeaten.

UNC: The Tar Heels responded to last week's blowout loss at Virginia Tech with a better showing. Still, UNC's offense struggled in the red zone by getting just three points on three first-half trips. And the defense repeated its habit of surrendering a couple huge plays to wipe out long stretches of solid execution.

UP NEXT

Miami: The Hurricanes host No. 13 Virginia Tech on Nov. 4 in a key Coastal Division matchup.

UNC: The Tar Heels have an off week before going to Pittsburgh on Nov. 9.