MEMPHIS, Tenn. -- Riley Ferguson threw a 10-yard touchdown pass with 19 seconds left in a wild fourth quarter Friday to lift Memphis to a 48-44 win over No. 18/21 Houston.
In a fourth quarter that produced four lead changes, the Cougars (9-3, 5-3American Athletic Conference, No. 20 CFP) had battled back from a 17-point halftime deficit before Ferguson's heroics in the final minute.
Greg Ward gave Houston a 44-41 lead with 1:29 remaining with his fourth TD toss, a 3-yard pass to Chance Allen.
But Memphis (8-4, 5-3) drove 72 yards in five plays and snapped a six-game losing streak against Houston after Ferguson found Anthony Miller for a 10-yard touchdown reception with 19 seconds left.
Ward was spectacular, completing 47 of 67 passes for 487 yards. He also rushed for a team-high 65 yards.
Memphis (8-4, 5-3) struck early against a Houston defense that stifled previously No. 3-ranked Louisville in a 36-10 home win last week.
The Tigers scored touchdowns on all three of their first-quarter drives, with Ferguson going 12 of 13 for 187 yards and two touchdowns in the quarter. His 67-yard pass to Phil Mayhue gave Memphis the early lead before Doroland Dorceus made it 14-3 with a 2-yard touchdown run.
Houston held Louisville to 312 total yards and 18 first downs in its win over the Cardinals last week. By the end of the first quarter Saturday, Memphis had amassed 222 yards and three touchdowns.