WATCH: Falcons pull out controversial last-second victory over 49ers

The Falcons scored late and then added a bizarre insurance TD to shock the 49ers.

The Atlanta Falcons went into San Francisco to face the injury-riddled 49ers. The game wasn’t decided until the last seconds and it took a replay review to make that official.

Watch as Matt Ryan finds Julio Jones for what was eventually ruled — after review — a TD that gave Atlanta a 23-22 lead. This came after an Austin Hooper catch was ruled incomplete.

And then, thanks for some 49er hijinks on the ensuing kickoff, the final score became 29-22. The ball was recovered by Olamide Zaccheaus for the final score.

And for those of you wondering why some folks are disconsolate and others are thrilled by the last touchdown, the over/under on the game was 45 1/2.

So just when you thought you were toast because Matt Ryan didn’t convert a two-point conversion after the TD to make it 23-22, miracles do happen.

Speaking of being thankful for miracles, the 49ers’ loss moves the Seattle Seahawks into the No. 1 seed in the NFC with two games left for every team. The Niners went from control of the NFC West to a possible fifth seed.