North Carolina survived an upset bid from Duke on Saturday night.

The Tar Heels won an incredibly close game, 38-35. Drake Maye threw the game-winning touchdown to Antoine Green with just 16 seconds remaining on the clock.

Here are 3 takeaways from the win:

Drake Maye is incredible

North Carolina fans already knew this from his first 6 games of the season, but Maye proved it once again on the road in a hostile environment on Saturday night.

Maye threw for 380 yards and 3 touchdowns in the win. He also led North Carolina with 70 rushing yards on 18 attempts.

North Carolina converted 8-of-13 3rd downs and its only 4th down attempt, which came on its game-winning drive. Everything North Carolina needed a big play from Maye, he delivered.

UNC is now 5-1 on the season, including 4 road wins for the freshman quarterback.

The defense still needs work

North Carolina’s defense was solid in the past 2 weeks against Virginia Tech and Miami, but it was exposed again by the Blue Devils in Durham.

Duke gained 542 total yards, including nearly 300 on the ground. Quarterback Riley Leonard threw for 245 yards and rushed for 130.

UNC does get credit for picking off Leonard on Duke’s desperate final drive, but it was still not a great game for UNC’s defense overall.

The path to Charlotte is clear

North Carolina remains the heavy favorite to represent the Coastal division at the end of the season. Beating Duke secures that reality as the college football calendar moves through mid-October.

UNC is now 6-1 on the season and is 3-0 in ACC play. The Tar Heels still have a couple hurdles remaining, but this was a big test to pass.

North Carolina is off in Week 8 and then will host Pittsburgh in a crucial matchup in Week 9.