Alabama beat Georgia in an overtime thriller to win the college football national title just after midnight Tuesday.

>> Visit AJC.com for complete coverage of the national championship game

The No. 4 seed Crimson Tide erased a 13-point second half deficit after benching starting quarterback Jalen Hurts in favor of freshman Tua Tagovailoa in a dramatic 26-23 overtime victory over No. 3 Georgia at Mercedes-Benz Stadium.

Tagovailoa threw a walk-off 41-yard touchdown pass to Devonta Smith to give Alabama its fifth national championship in nine years.

>> Photos: Alabama Crimson Tide vs. Georgia Bulldogs

Alabama kicker Andy Pappanastos missed a 36-yard field goal that would have won it for the Crimson Tide at the end of regulation.

In overtime, Rodrigo Blankenship kicked a 51-yard field goal on Georgia’s first possession after Jake Fromm was sacked on third down to give the Bulldogs a 23-20 lead.

Devin Bellamy sacked Tagovailoa on the Crimson Tide's first play of the overtime to put Alabama in second-and-26.

On the next play, Alabama stunned Georgia when Tagovailoa found Smith running wide open down the left sideline.

>> More coverage from DawgNation.com

Georgia wide receiver Mecole Hardman runs during the second half of the NCAA college football playoff championship game against Alabama Monday, Jan. 8, 2018, in Atlanta. (AP Photo/David Goldman)

Credit: David Goldman

icon to expand image

Credit: David Goldman

>> Read more trending news

Alabama denied Georgia its first national championship since 1980.

The win gives Crimson Tide head coach Nick Saban his sixth national title, matching the record set by former Alabama coach Paul "Bear" Bryant.

>> Trump greeted at Georgia-Alabama game with roaring mix of cheers, boos

Tagovailoa finished 14-for-24 with 166 yards passing and three touchdowns.

>> Visit WSBTV.com for more Georgia Bulldogs news

Georgia quarterback Jake Fromm went 16-for-32 with 232 yards with one touchdown and two interceptions.