LAWRENCE, Kan. -- Sam Ehlinger and No. 11 Texas made enough plays to put away Kansas.
Next up is a much bigger challenge.
Ehlinger threw for two touchdowns and ran for a score, and the Longhorns beat the Jayhawks 24-17 on Friday to clinch a spot in the Big 12 title game.
Texas (9-3, 7-2, No. 15 CFP) opened a 24-7 lead on Cameron Dicker's 34-yard field goal in the fourth quarter, but Kansas responded with Peyton Bender's 31-yard touchdown pass to Daylon Charlot and recovered the ensuing onside kick.
After Gabriel Rui made it a one-score game with a 45-yard field goal with 1:37 remaining, the Jayhawks (3-9, 1-8) were unable to recover another onside kick and the Longhorns closed it out from there.
"We treated this game like a semifinal, if you will, win and advance," coach Tom Herman said. "And our guys found a way to win and advance."
Tre Watson finished with 79 yards on 14 carries as Texas earned its third consecutive victory. The Longhorns will face No. 6 Oklahoma in the Big 12 championship next Saturday.
"We put a little cushion out for us there towards the end, but we knew they weren't going away," Herman said.
"They made some really good plays down the stretch, but we made just enough to seal the deal."
Kansas dropped its last four games in David Beaty's final season as Jayhawks coach. Les Miles takes over the downtrodden program after he was hired on Sunday.
Beaty leaves Kansas with a 6-42 record. But the final of his four seasons in charge included three wins, a conference victory over TCU and the end of the Jayhawks' 46-game road losing streak.
"I want to thank our team and I want to thank all the Jayhawks out there for having a chance to represent you," Beaty said. "It's been fun."
Ehlinger threw two interceptions, one in the second quarter to Najee Stevens-McKenzie and one late to Shak Taylor. He had gone 10 straight games without an interception after throwing two in the season opener against Maryland.
Ehlinger played through a shoulder injury he aggravated last week after originally coming down with the issue back in October. But he downplayed the significance.
"It wasn't something that was limiting at all," he said.
The Longhorns had a 98-yard drive on their first possession that ended with a 26-yard touchdown pass from Ehlinger to Collin Johnson.
Texas' offense struggled for much of the first half, and then got back on track in the third quarter. Watson's 31-yard run helped set up Andrew Beck's 5-yard touchdown reception, and Ehlinger's 3-yard TD run made it 21-0 with 1:02 left.
Pooka Williams Jr. had 18 carries for 103 yards for Kansas, including a 57-yard touchdown run in the fourth. Bender was 18 for 35 for 159 yards.
"We'll take 24 hours to diagnose it as a concussion, and get him in that protocol if it is truly that," Herman said.
QUOTE OF THE DAY
"Eons," Herman joked when asked how long ago the season-opening loss to Maryland on Sept. 1 felt. "I don't know, what's the longest period of time? This team has grown up quite a bit."
Texas: It was a sweet day for the Longhorns after its 2016 loss at Memorial Stadium ended a string of 13 consecutive wins over the Jayhawks, likely sealed the fate of embattled coach Charlie Strong and ultimately led to Herman's hiring away from Houston.
Kansas: Fails to send Beaty off with a win, capping another losing season.
Texas: Beat Oklahoma 48-45 on Oct. 6.
Kansas: The Miles era begins in earnest.
More AP college football: https://apnews.com/Collegefootball and https://twitter.com/AP-Top25
Sources: UConn expected to rejoin Big East
UConn is expected to leave the American Athletic Conference and return to the Big East for basketball and other sports in 2020, sources told ESPN.
Clemson, Alabama huge favorites in openers
Clemson and Alabama, the clear-cut favorites to win the national championship, are both favored to win their season-openers by more than 30 points. Clemson is a 34-point favorite over Georgia Tech, while Alabama's favored by 32 points over Duke.
UGA dismisses WR Holloman after 2018 incident
Wide receiver Jeremiah Holloman has been dismissed from the Georgia football team after he admitted to police that he punched his then-girlfriend during an incident in 2018.
Grambling WR Clark shot, his brother killed
A teen has been killed, while Grambling State University football player D.J. Clark and a third unnamed person have been injured in a shooting at a suburban New Orleans playground.
No. 47-ranked Rosemy commits to Georgia
Marcus Rosemy's commitment to Georgia gives the Dawgs 10 ESPN 300 recruits in the 2020 class.
Sooners land another top QB, Vandagriff, in '21
Quarterback Brock Vandagriff, expected to be one of the top passers in the Class of 2021, committed Thursday to the Oklahoma Sooners.