What Baker Mayfield did on Thursday night was unprecedented.

The quarterback arrived in Los Angeles on Tuesday night after the Panthers waived him on Monday. He didn’t start, but he played every offensive snap after the Rams’ first drive in their game against the Raiders.

And then against all odds, he tossed a 23-yard touchdown pass to Van Jefferson with just 10 seconds left to beat Las Vegas 17-16.

It completed an eight-play, 98-yard drive that began with 1:45 on the clock — and Los Angeles didn’t have any timeouts.

According to the Elias Sports Bureau, it was the longest touchdown drive that began in the last two minutes over the last 45 seasons — long before Mayfield or Rams head coach Sean McVay were even born.

“I don’t know if you could write it any better than that,” Mayfield said in his postgame press conference. “Obviously, we’d like to be a little bit more stress-free. But it’s a pretty damn good story. It’s special.”