Drayton Florence intercepted a pass by Kaepernick in the final minute to seal a 10-9 victory over the 49ers Sunday. It snapped San Francisco’s five-game winning streak and gave the Panthers their fifth straight win.

So much for the idea that Carolina hadn’t beaten any team of consequence thus far.

‘‘I don’t think it really bothers us, it gives us the opportunity to step up to the challenge. We did,’’ said wide receiver Steve Smith, who had six receptions. ‘‘A win like this can boost us, a win like this can continue to give us life throughout the season, and make us feel like we’re working for something, and we are.’’

Graham Gano kicked a 53-yard field goal with 10:05 remaining that held up as the Panthers (6-3) twice shut down Kaepernick on last-ditch drives with swarming defense.

DeAngelo Williams broke two tackles for a 27-yard touchdown run late in the first half that pulled Carolina within 9-7. Gano missed wide left on a 48-yard field goal in the third quarter, but came through later.

San Francisco (6-3) got the ball back with 5:25 left at its 1, then again with 1:02 to go.

Phil Dawson kicked a season-best 52-yard field goal among his three for the 49ers, who lost tight end Vernon Davis and rookie safety Eric Reid to concussions.

Carolina fumbled twice in the closing moments, but recovered each time. First, Jonathan Stewart fumbled and Mike Tolbert pounced on the ball. Cam Newton recovered his own bobble.

This was hardly the highly touted showdown between 2011 No. 1 overall pick Newton and Kaepernick, the sixth quarterback drafted that year, in the second round. They roomed together during the scouting combine.

For Newton, the numbers hardly mattered.

‘‘This game is a maturity jump for us, because in the past what I've been a part of, we’ve been somewhat uncertain of how we will turn out in these types of games,’’ Newton said. ‘‘We needed that type of game, just to be in a dogfight, in somewhat of a barnburner, to show what type of team this really is.’’

Kaepernick went 11 of 22 for 91 yards with an interception and was sacked six times for a 42.0 passer rating.

Newton was only slightly better, going 16 of 32 for 169 yards with an interception and four sacks for a 52.7 rating.

For two teams that have been putting up points at a prolific pace for the past month, the defenses dictated this one.

‘‘As the game went on, it got more and more intense,’’ Smith said.

More than losing the game, the losses of Davis and Reid could be troublesome for the reigning NFC champions as they hit the road next week for New Orleans, then go to Washington.

‘‘We’ll do what we do, bounce back, regroup, refit, and reorganize and come back this week,’’ coach Jim Harbaugh said.

Davis didn’t return after sustaining a concussion in the second quarter, then Reid went down on a helmet-to-helmet hit on Mike Tolbert in the third. Earlier, Reid recovered a fumble to give him five takeaways in an already-stellar rookie season that also includes three interceptions.

Frank Gore had 16 carries for 82 yards, accounting for most of San Francisco’s 151 total yards.

‘‘For the most part, I don’t really think they did anything that necessarily confused us,’’ 49ers center Jonathan Goodwin said. ‘‘They only gave up 9 points. It’s hard not to give them credit. We expected it to be a physical game. Did we expect to only score nine points? Nah.’’

Dawson put San Francisco ahead on a 52-yard field goal on the team’s opening drive, then kicked second-quarter field goals of 43 and 25 yards.

But Kaepernick could never get his team in the end zone in its first game since a bye on the heels of a win over Jacksonville in London.

49ers pass-rushing specialist and 2012 All-Pro linebacker Aldon Smith played limited snaps after missing five games to undergo treatment for substance abuse.

Wide receiver Mario Manningham started and had three catches in his season debut for San Francisco, nearly 11 months after a serious left knee injury that required surgery.

Carolina got going after managing minus-7 yards passing and 12 total yards in the first quarter. The Panthers finished with 250 total yards.

‘‘This one really did come down to the way the defense played,’’ Panthers coach Ron Rivera said. ‘‘Any time you put yourself in a position where you can force the other team to kick field goals, you get a chance to win.’’

BostonGlobe.com complimentary digital access has been provided to you, without a subscription, for free starting today and ending in 14 days. After the free trial period, your free BostonGlobe.com digital access will stop immediately unless you sign up for BostonGlobe.com digital subscription. Current print and digital subscribers are not eligible for the free trial.

Thanks & Welcome to Globe.com

You now have unlimited access for the next two weeks.

BostonGlobe.com complimentary digital access has been provided to you, without a subscription, for free starting today and ending in 14 days. After the free trial period, your free BostonGlobe.com digital access will stop immediately unless you sign up for BostonGlobe.com digital subscription. Current print and digital subscribers are not eligible for the free trial.