No. 18 Houston beat Baylor 30-27 on Saturday night, as Keisean Henderson threw a 42-yard touchdown pass to Koby Young with 53 seconds left and Jonathan Dimas kicked a 50-yard field goal as time expired.

Henderson, making his second career start, threw for 265 yards and accounted for two touchdowns. The freshman started for the second straight week with Conner Weigman sidelined by an injured right shoulder.

Houston (9-3, 6-3 Big 12) finished the season unbeaten at home, going 6-0. The Cougars took a 14-0 lead on touchdown runs by Makhi Hughes and Henderson, but Baylor’s Caden Knighten scored three rushing touchdowns to put the Bears ahead late.

Knighten’s 9-yard run, his third touchdown of the game, gave Baylor a 27-20 lead with 1:22 remaining. On Houston’s ensuing drive, Young drew a pass-interference penalty on Baylor’s Levar Thornton Jr. Three plays later, Henderson threw from near midfield, and Young made the catch in tight coverage in the right corner of the end zone.

Amare Thomas caught a 26-yard pass and went down with one second left, setting up Dimas’s field goal. Dimas had also won the previous week’s game against West Virginia with a 23-yard kick as time expired, as Houston prevailed 34-31.

The late comeback came after a largely quiet game. The teams combined for four field goals in the second half before scoring touchdowns 29 seconds apart late in regulation. Houston’s win avoided what would have been its fourth loss of the season after surrendering a double-digit lead.

NO. 18 HOUSTON 30, BAYLOR 27 Baylor: 0, 13, 3, 11 — 27 Houston: 14, 0, 3, 13 — 30 First quarter HOU — Hughes 23 run (Dimas kick), 6:34. HOU — K. Henderson 1 run (Dimas kick), 1:36. Second quarter BAY — Knighten 9 run (kick blocked), 14:55. BAY — Knighten 74 run (Armstrong kick), 7:56. Third quarter HOU — Dimas 25 field goal, 8:52. BAY — Armstrong 39 field goal, 5:03. Fourth quarter HOU — Dimas 32 field goal, 14:57. BAY — Armstrong 29 field goal, 4:59. BAY — Knighten 9 run (Lagway run), 1:22. HOU — K. Young 42 pass from K. Henderson (Dimas kick), :53. HOU — Dimas 50 field goal, :00.

Team statistics (Baylor, Houston) First downs: 21, 30 Total net yards: 466, 540 Rushes-yards: 28-200, 54-275 Passing: 266, 265 Punt returns: 2-19, 0-0 Kickoff returns: 2-50, 0-0 Interceptions returned: 1-9, 1-0 Completions-attempts-interceptions: 20-39-1, 20-30-1 Sacks-yards lost: 2-20, 4-28 Punts: 5-43.2, 4-45.75 Fumbles-lost: 1-0, 1-0 Penalties-yards: 5-48, 4-25 Time of possession: 23:13, 36:47

Individual statistics Rushing — Baylor: Knighten 12-133, Pendergrass 3-26, M. Turner 1-24, Morris 7-20, Lagway 5-(minus 3). Houston: K. Henderson 17-93, Hughes 24-93, Sanford 11-74, Butler 1-8, K. Young 1-7. Passing — Baylor: Lagway 20-39-1-266. Houston: K. Henderson 20-30-1-265. Receiving — Baylor: Freeman 9-90, Jad. Porter 3-61, McGowan 2-56, M. Turner 2-8, Brown 1-21, Livingston 1-16, Polley 1-12, Pendergrass 1-2. Houston: A. Thomas 7-79, Overmyer 5-46, K. Young 3-62, T. Walker 3-51, Sanford 1-22, Hughes 1-5. Missed field goals: None.