Jabari Carr hauled in a go-ahead TD pass from Matt Faulkner with 54 seconds remaining to help San Jose State snap a 16-game road losing skid with a 38-31 win over Colorado State on Saturday.
The Spartans (2-3) have now won back-to-back games for the first time in three years.
Brandon Rutley rushed for 131 yards and two touchdowns before limping off the field after spraining his left ankle in the third quarter.
The Spartans lost some of their steam without their powerful tailback, squandering a 31-17 lead in the second half.
With the game tied and 3:30 remaining, Faulkner guided the Spartans down the field and found a wide-open Carr on the left side for a 38-yard touchdown.
Cornerback Ronnie Yell ended a last-gasp effort by the Rams (3-2) as he intercepted a long pass from Pete Thomas in the closing seconds.