RENO — Brandon Talton kicked a 40-yard field goal on the final play of the game, lifting Nevada to a 41-38 victory over San Jose State on Saturday after the Spartans had rallied from a 21-point deficit.

Toa Taua ran for 160 yards and a touchdown for Nevada (4-2, 1-1 Mountain West Conference). On the final drive, Taua broke two tackles in the backfield and jumped over a third defender while losing his shoe for a 27-yard gain that moved the Wolf Pack past midfield. Talton kicked the winner six plays later.

“This is a really tough way to lose a game on the road,” San Jose State coach Brent Brennan said. “They made the plays at the end of the game that they needed to win.”

Josh Love was 23-for-45 passing for 405 yards and three touchdowns for the Spartans (3-3, 1-2). DeJon Packer had two short touchdown runs in the second half.

Malik Henry threw a 75-yard touchdown pass to Romeo Doubs on the first play of the second half to stretch the Wolf Pack lead to 31-10. But by the end of the third quarter, the Spartans had closed to within a touchdown as Bailey Gaither hauled in a 60-yard TD pass and Packer scored on a 1-yard run.

Love’s 20-yard touchdown pass to Tre Walker tied the score at 31 midway through the fourth quarter.

The teams then traded touchdowns before Talton’s winning kick.

“I was really proud of the way our team fought back in the second half,” Brennan said. “After not playing our best football in the first half, we obviously changed that around big time, and that was good to see. ... At the same time, none of us should feel good about what happened because we had a chance to win the game and we didn’t win it.”