MADISON, Wis. -- BYU coach Kalani Sitake viewed Wisconsin's brand of smashmouth football as a blueprint for success.
The Cougars followed the plan to perfection Saturday at Camp Randall Stadium.
Squally Canada ran for 118 yards and two touchdowns and BYU handed mistake-prone Wisconsin its first nonconference home loss since 2003 with a 24-21 victory.
BYU gave sixth-ranked Wisconsin fits on motion plays and sweeps. The Cougars (2-1) tossed in a trick play, too, when receiver Aleva Hifo found open tight end Moroni Laulu-Pututau for a 31-yard touchdown pass in the second quarter.
Sitake was so happy with the toughness of his team that he gave the game ball to his strength and conditioning coaches.
"I talked about how much I admire the [Wisconsin] program, the tradition and the smashmouth football that they play,'' Sitake said. "But [BYU's] players were gritty and they played hard and with a lot of toughness.''
Wisconsin (2-1) had one last chance to avoid an upset with a drive that started with 3:55 left at the 8. But normally reliable senior kicker Rafael Gaglianone's 42-yard field goal attempt to tie with 41 seconds left went wide left .
"BYU! BYU!'' yelled the small contingent of Cougars fans in the stands. BYU's last victory over a top-10 team came in 2009 with a 14-13 win over third-ranked Oklahoma.
"We just wanted to win the line of scrimmage and be physical,'' Sitake said.
The Badgers' 41-game nonconference winning streak -- the longest active in the nation -- came to an end. Their hopes to make the College Football Playoff probably did, too.
"Win as a team and everyone can own their part equally in a loss,'' Wisconsin coach Paul Chryst said.
Skyler Southam's 45-yard field goal with 9:58 left, set up by Canada's 46-yard run on the first play of a five-play drive, gave BYU the lead for good, 24-21.
The Cougars punched right back after Wisconsin tied the game at 21 on Taiwan Deal's 5-yard touchdown run with 12:43 to go.
"They out-executed us,'' Badgers linebacker T.J. Edwards said.
Wisconsin's last nonconference loss at home was to UNLV, 23-5 on Sept. 13, 2003.
DEALING WITH IT
Deal rushed for two short scores. Star sophomore Jonathan Taylor had for 117 yards on 26 carries, but Wisconsin couldn't hit many big plays against a defense that was giving up 156 on the ground going into the afternoon.
"We knew we had to play stout and big up front -- they like to pound the ball,'' BYU linebacker Sione Takitaki said.
The Badgers also sputtered for much of the day through the air.
Alex Hornibrook was 18-of-28 for 190 yards, throwing an interception deep in Wisconsin territory on the team's opening drive of the second half. Canada scored his second touchdown of the day on the next series.
Hornibrook did his best work on Wisconsin's final possession with short passes over the middle and a 16-yard scramble to get the team to the BYU 26.
The Badgers gained just 2 yards the rest of the way, and Gaglianone missed after BYU called two timeouts.
"Everyone here knows it doesn't come down to that one play,'' Chryst said.
Tanner Mangum was 12-of-22 for 89 yards, but he deftly operated an offense that used spread formations, motions and sweeps to find holes against Wisconsin.
Hifo ended up having the biggest pass on the trick play.
"That was a big momentum boost. It gave us a lot of confidence," Mangum said.
It was a far different outcome from last year's meeting in Provo. Mangum missed the game with an injury and the Badgers won 40-6.
The upset will draw notice for BYU from AP Top 25 poll voters, while Wisconsin likely will tumble at least out of the top 10, if not further.
BYU: It was quite a bounce-back performance for the Cougars a week after losing to California. A hot-and-cold offense has looked good in road wins against Arizona and Wisconsin but has struggled in the second half last week against Cal. The Cougars set the tone early by keeping the young Badgers defense on its heels. The Cougars played with confidence in a tough road environment a week after a sluggish second half against California, when they managed just 94 yards.
Wisconsin: The Badgers have first-year starters at cornerback, outside linebacker and defensive end. BYU exploited the defense with jet sweeps, though Wisconsin also has used that play for big gains, so it's not like the defense hasn't seen it in practice. Wisconsin also had a few missed tackles early in the game, including two by normally sure-handed inside linebacker Ryan Connelly, and they played most of the game without top outside linebacker Andrew Van Ginkel (right leg).
BYU: Hosts FCS school McNeese State on Sept. 22
Wisconsin: Big Ten opener at Iowa on Sept. 22
Kentucky's Allen says he's the draft's best player
Kentucky's Josh Allen says he's not just the best edge rusher in this year's draft, but the best overall player.
Successful showing at Kentucky's Pro Day
SEC Now analysts Matt Stinchcomb and Gene Chizik examine how far Kentucky has come as a program and who can make an impact in the NFL for the Wildcats.
White, Williams checking off boxes at LSU's Pro Day
SEC Now discusses the potential of linebacker Devin White and cornerback Greedy Williams at the next level.
William & Mary RB Evans killed in shooting
Nate Evans, a junior running back at William & Mary, died at the scene after the 19-year-old was shot on a city sidewalk in Norfolk, Virginia. Police are investigating the incident.
Mario Cristobal leading Oregon's rise in Pac-12 recruiting
Oregon's strategy of viewing California as a home state is paying off in big ways as the Ducks out-recruit USC and UCLA.
Kicker Boermeester suing USC over expulsion
Matt Boermeester has filed a lawsuit alleging USC ruined his academic and athletic careers when he was expelled in 2017 after an alleged altercation between him and his girlfriend.