GREENVILLE, N.C. (AP) Trailing by double figures in the final minutes, No. 17 Cincinnati proved something to coach Luke Fickell - and maybe to everyone else, too.

The Bearcats rallied to beat East Carolina 46-43 on Saturday night when Sam Crosa kicked a 32-yard field goal as time expired.

Desmond Ridder threw for 161 yards and a touchdown, rushed for 146 more and led two scoring drives in the fourth quarter, including the winning drive in the final 1:10 for the East Division-leading Bearcats (7-1, 4-0 American Athletic Conference). The 24 1/2-point favorites trailed by 12 points with less than 9 minutes left before escaping with their sixth win in a row.

''We showed a lot of heart,'' Fickell said. ''This team, they've got something more than I even thought. We're going to be a lot better because of this game. We're going to be a lot tighter because of this game. This is going to give us a lot more opportunities.''

Ahmad Gardner returned an interception 62 yards for a touchdown with 4:38 remaining to give Cincinnati a short-lived 43-40 lead after Ridder's 3-yard TD to Josiah Deguara started the comeback. Michael Warren II rushed for 141 yards and matched a career high with three touchdown runs.

''We've got to make as many plays as we could,'' Gardner said. ''My team was telling me to go get one. They knew it was coming, though. I did, too.''

Holton Ahlers threw for a school-record 535 yards, matched a career high with four touchdown passes and rushed for a score for the Pirates (3-6, 0-5). They were trying to beat a Top 25 team for the first time since 2014.

Jake Verity tied it at 43 with his third field goal, a 27-yarder with 1:14 remaining.

That left plenty of time for Ridder and the Bearcats to rally: Ridder started the go-ahead drive with a 30-yard scramble into East Carolina territory and hit Malick Mbodj with three passes to get the Bearcats to the 15 with 4 seconds left. After three timeouts, Crosa's kick at the buzzer was perfect.

''Our defense was scrambling a little bit and had we tried to match throwing the ball as much and maybe even scored even quicker, I don't know that would have been the best thing for our team, to give us an opportunity to have a chance to win it at the end,'' Fickell said.

THE TAKEAWAY

Cincinnati: The Bearcats' five-game winning streak appeared over in a wave of 12 penalties and a season-worst 117 penalty yards and an inability to stop Ahlers. The team came to life just in time to preserve their highest national ranking since 2009 and keep their league title and Cotton Bowl hopes alive.

''The great thing is, hopefully we got a wake-up call,'' Fickell said. ''Obviously, this league is really good and we've got to be prepared and we've got to do a better job and we've got to grow if we want to be at the top if this league at some point in time. We've got a ways to go.''

East Carolina: This one is going to sting the Pirates, who had their first victory over a ranked opponent since 2014 in their hands and appeared headed for the cornerstone victory of first-year coach Mike Houston's rebuilding project. But they couldn't find a way to stop Ridder and the Bearcats in the final 70 seconds.

''You're playing a team like that and you have the opportunity - we just couldn't make the plays at the right time,'' Houston said. ''You're going to look tomorrow at 20 different plays that, if you make any one of them, you win the game.''

RECORD BOOK

Ahlers shattered the old school record of 480 yards passing, set six years ago by Shane Carden against Tulane. ... C.J. Johnson set the school and conference records with 283 yards receiving, breaking the ECU record of 270 yards set two years ago by Trevon Brown against Cincinnati.

BIG PLAYS

Gardner has two pick-sixes in less than a month after bringing an interception 11 yards for a score in the 27-24 victory over Central Florida. This one came in man-to-man coverage whereas against UCF, he said ''I did it in cover-three, so it wasn't a risk.''

STAT SHEET

The Pirates scored one more point against Cincinnati than No. 3 Ohio State (42) did. The Buckeyes were the only team to score more than 24 points against the Bearcats and both ECU and Ohio State had put up 28 points in the first half against them.

UP NEXT

Cincinnati: Plays host to Connecticut on Saturday.

East Carolina: Faces a second straight Top 25 opponent in a visit to No. 15 SMU on Saturday.

---

More AP college football: https://apnews.com/Collegefootball and http://www.twitter.com/AP-Top25

Copyright 2019 by STATS LLC and Associated Press. Any commercial use or distribution without the express written consent of STATS LLC and Associated Press is strictly prohibited.