Justin Holman threw a 4-yard touchdown pass to running back William Stanback on the first possession of overtime and UCF beat BYU 31-24 on Thursday night after overcoming a 14-point deficit in the second half.
Christian Stewart's fourth-down pass for BYU fell incomplete in the end zone to end the game.
Stanback added a rushing touchdown. Holman was 30 of 51 for a career-high 326 yards and threw two scoring passes. He also had a pair of interceptions.
In his first start since Heisman hopeful Taysom Hill went down with a season-ending broken leg, Stewart struggled early, but recovered to go 22 for 37 for 153 yards, three touchdowns and an interception.
The Knights (3-2) took an early first-half lead before falling into a 24-10 hole in the third quarter.
BYU (4-2) scored 21 straight points to take a 24-10 lead early in the third quarter. UCF was able to answer with a pair of touchdowns to tie it.
UCF was lined up for a potential go-ahead field goal in regulation, but bobbled a snap on an initial 43-yard field goal. After a timeout UCF tried again from 50 yards out, but Shawn Moffitt's kick was blocked by Mitch Matthews.
BYU recovered from a sluggish start, and needed less than three minutes to score three straight touchdowns and take its 14-point lead early in the third quarter.
The Cougars tied it at 10 on the opening drive of the half with a 4-yard touchdown pass from Stewart to Colby Pearson.
Following a quick UCF three-and-out, the Cougars were then the recipient of some luck a few series later when their own drive stalled and a punt Scott Arellano's bounced off the leg of UCF's Sean Beckton. BYU's Algernon Brown recovered it, and set up a 15-yard touchdown pass from Stewart to Devin Mahina, that made it 17-10.
UCF's misfortunes continued on the next play from scrimmage, when Holman's pass was picked off by Skye Povey on the BYU 14. Stewart went back to the air after the changeover and immediately found Mahina again for a 14-yard touchdown pass to make it 24-10 with 9:05 left in the third.
The Knights finally settled down, and closed within seven, finishing off an eight-play, 37-yard drive with Stanback's 2-yard touchdown run.
UCF's defense rode that rush of momentum, and sacked Stewart on the third snap of BYU's next series. Stewart recovered, and drove the Cougars all down to the 15, before a hit by UCF's Terrance Plummer forced and recovered Brown's fumble.
The Knights traded punts with the Cougars, before using a 37-yard strike from Holman to Josh Reese to tie it at 24 with 10:17 remaining.
BYU punted again, and UCF had a chance to take the lead back. But Moffitt's 46-yard field goal attempt missed wide left.
The Knights defense forced another punt, giving the Knights offense another chance.
But on the fifth play of the drive, Holman's pass over the middle was intercepted by Kai Nacua, giving the ball back to the Cougars with 3:15 left.