HONOLULU -- Hawai'i coach Nick Rolovich had this SoFi Hawai'i Bowl all figured out, except for the details.
He told his players there would be times when beating BYU seemed out of reach, but he wanted them to expect to win the game in the fourth quarter. And that's what happened Tuesday at Aloha Stadium in a 38-34 victory for the Rainbow Warriors' first win over the Cougars since 2001.
Rolovich just couldn't have scripted how it would happen.
Hawai'i scored 31 points by halftime against a BYU defense that had given up more than 30 points in a game once this season, on the road against Washington. The Warriors were blanked so badly in the second half they didn't even get into the red zone until their final possession.
Khoury Bethley grabbed his second interception of the game -- and the season -- to stop BYU's final chance and give Hawai'i only its sixth 10-win season in school history and the first since 2010.
"It sure wasn't looking that good," Rolovich said. "To get a 10-win season by beating BYU, it's hard to write anything better."
McDonald finished with 493 yards passing and four touchdowns, taking him over 4,000 yards for the season. He constantly burned the BYU secondary with the deep ball, and he was at his best at the end.
BYU (7-6) took its only lead of the game on a 20-yard field goal early in the fourth quarter. The Cougars had a chance to run out the clock until Zach Wilson was hurried and threw incomplete on third-and-2.
That gave Hawai'i one final opportunity, all it needed.
McDonald had an idea about what the defense was trying to do, and he manipulated the safety by looking right before coming back to the left to find Mardner alone for a 38-yard gain down the left sideline. On the next play, he found Mardner on a post and led him perfectly. Those were the only two catches Mardner had for the game.
"I was nervous and excited," McDonald said. "It was destiny for us."
Rolovich played for Hawai'i in 2001 when it most recently beat BYU, back when both were in the Western Athletic Conference. This was the first time they had met in a bowl game, with Hawai'i (10-5) designated the visiting team on its home field.
BYU wasted a solid game by Wilson, whose father grew up in Hawai'i. Wilson threw for 274 yards and ran for 72 yards and two short TDs to help the Cougars rally in the first half.
BYU's last chance ended when Bethley picked off Wilson for the second time, and the celebration was on.
McDonald finished 28-of-46, and he did most of his damage in the first half by throwing for 331 yards and three scores. Of the four touchdown drives, the shortest was 40 yards. That one followed Bethley's first interception. Two plays later, McDonald found Jared Smart on a post route with a perfectly thrown pass that made it 14-0.
Wilson brought the Cougars back, leading them on touchdown drives of 73, 75 and 75 yards, the last one ending on Micah Simon scoring on an 11-yard reverse.
"We knew they had a dynamic offense," BYU coach Kalani Sitake said. "We knew he had to be at our best. Obviously, we didn't make enough plays to win the game. The big plays were the issue, even at the end of the game."
BYU still leads the series 23-9.
Hawai'i: McDonald used the middle of the field and was not afraid to go deep on a BYU defense that had been stubborn against the pass most of the year.
BYU: The Cougars had great balance with the run (231 yards) and pass (274 yards). But they were susceptible to the deep ball all game, and it cost them in the end.
Hawai'i receivers Smart and JoJo Ward each went over 1,000 yards for the year, joining Cedric Byrd II. This is the sixth time in NCAA history that a team had three players with at least 1,000 yards receiving in a season. Hawai'i has done it twice, the other time in 2007. The other schools are Texas Tech (2003), Tulsa (2003), Houston (2009 and Fresno State (2013).
BYU's front line was so dominant that Hawai'i finished with 2 yards rushing on 27 carries. The longest run of the game was a scramble by McDonald for 9 yards on the play before his two passes to Mardner.
Hawai'i: At Arizona on Aug. 29 to open the 2020 season.
BYU: At Utah on Sept. 5 to open the 2020 season.