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
Kendall's transfer to WVU hitting a snag
Jake Trotter reports the latest on Austin Kendall's efforts to transfer away from Oklahoma.
Trotter: Hurts addition makes Oklahoma a playoff contender
Jake Trotter breaks down what Jalen Hurts' transfer to Oklahoma means for the Sooners.
FIU's Butch Davis: Miami game at old Orange Bowl site will be 'magic'
FIU and the Marlins unveiled plans for the Nov. 23 game between the Golden Panthers and Hurricanes at Marlins Park -- built on the site where the Orange Bowl, Miami's former home field, stood before it was demolished more than a decade ago.
Foxworth, Spears get heated about Murray's NFL potential
Domonique Foxworth and Marcus Spears get fired up debating if Kyler Murray should play baseball or football.
Jalen Hurts gives Oklahoma coach Lincoln Riley a chance to reload
Following Heisman-winning transfers Baker Mayfield and Kyler Murray, the Sooners' loaded offense gives Hurts a shot at challenging Alabama and Tua Tagovailoa.
Ex-USC assistant Todd McNair granted new trial in lawsuit vs. NCAA
A judge in Los Angeles issued an order for a new trial in Todd McNair's defamation lawsuit against the NCAA, citing insufficient evidence to justify the original verdict.