STARKVILLE, Miss. -- Jalen Hurts hit DeVonta Smith for a 26-yard touchdown pass with 25 seconds remaining to lift No. 1 Alabama over No. 18 Mississippi State 31-24 on Saturday night.

Alabama (10-0, 7-0 SEC, CFP No. 2) won its 10th straight game against Mississippi State, but this one was much more difficult than most of the others.

"We did a good job of staying together, being one and staying cool and calm," Hurts said. "We did enough."

Mississippi State (7-3, 3-3, CFP No. 16) pushed ahead 24-17 early in the fourth quarter on Jace Christmann's 25-yard field goal, but Alabama responded to tie it at 24 when Damien Harris ran for a 14-yard score with 9:49 left. Alabama had a chance to take the lead with about two minutes left, but a 40-yard field goal attempt by Andy Pappanastos banged off the left upright and fell harmlessly to the turf.

Mississippi State went three-and-out on the ensuing drive and Alabama took over with 1:09 remaining. That was more than enough time for the Tide, who drove six plays and 68 yards in 44 seconds for the game-winning score.

Alabama coach Nick Saban wasn't particularly pleased with parts of his team -- especially on defence -- but he was relieved it responded well to some adversity.

"Sometimes you need hard," Saban said. "If we're going to beat really good teams, if we're going to compete, we've got to learn how to compete in close games where every play counts. Where you've got to play every play for 60 minutes."

The game was tight throughout with neither team leading by more than a touchdown. Mississippi State pushed ahead 7-0 in the first quarter on an 11-yard touchdown run by Aeris Williams. It was the first touchdown the Bulldogs had scored against Alabama since 2014 and the first time they'd taken the lead against the Tide since 2008.

Alabama's defence has been dominant for most of the season, but several injuries at linebacker throughout the season finally appeared to take a toll. Mississippi State's power running game gained 172 yards, but in the end Alabama was able to slow the Bulldogs down.

"It hurts," said Mississippi State quarterback Nick Fitzgerald, who threw two Hail Mary attempts to no avail in the closing moments. "It doesn't matter who we lost to or how much we lost by, we lost a game we should have won."

THE TAKEAWAY
Alabama: The Crimson Tide found a way to survive arguably their toughest test of the season. Hurts completed 10 of 19 passes for 242 yards and a touchdown. Calvin Ridley caught five passes for 171 yards.
Mississippi State: The Bulldogs did just about everything right except for win the game. Nick Fitzgerald completed 13 of 24 passes for 158 yards and ran for 66 yards and a touchdown. Williams ran for 97 yards and two touchdowns.

UP NEXT
Alabama hosts Mercer next Saturday.
Mississippi State plays at Arkansas next Saturday.