NASHVILLE, Tenn. — The Tennessee Titans must be grateful they get to play the Jacksonville Jaguars at least once a year.

Marcus Mariota scored the go-ahead touchdown on an 87-yard run midway through a wild fourth quarter, and the Titans edged the Jaguars 42-39 on Sunday to snap their 11-game home losing streak.

The Titans (3-9) had not won on their own field since Oct. 12, 2014, when they needed a blocked field goal to beat these very same Jaguars 16-14. That was their lone home victory all last season. The teams combined for many more points Sunday, scoring six touchdowns in the fourth quarter alone.

The Jaguars (4-8) failed at the chance to sweep Tennessee for the first time since 2005. Blake Bortles threw for 322 yards and five touchdowns — three to Allen Robinson, who had 10 catches for 153 yards.

Even with the high-scoring final quarter, the Jaguars cost themselves when Jason Myers missed two extra points. They also had a pass batted down on a 2-point conversion attempt.

Jacksonville had one last chance. But Da’Norris Searcy and Karl Klug sacked Bortles on fourth-and-4 with 2:02 left at the Tennessee 6.

advertisement | advertise on newsday

Mariota kneeled down to end the game and start a long-awaited celebration in Tennessee, as the Titans topped their win total of last season when going 2-14 earned them the right to draft Mariota out of Oregon.

Mariota finished with 112 yards rushing, becoming the first Tennessee player to run for at least 100 yards since Chris Johnson on Dec. 29, 2013.

The Heisman Trophy winner also threw for three touchdowns and 268 yards. Titans rookie wide receiver Dorial Green-Beckham had his best day as a pro with five catches for 119 yards.

Mariota completed the only pass he threw in the third quarter but was sacked three times, including once when he tripped. Yet he opened the fourth quarter with a 47-yard TD pass to Green-Beckham, who bounced off Jaguars safety Sergio Brown and ran for the score.

That was just the first in a crazy stretch where these teams traded TDs. Bortles threw three himself in the quarter. Jacksonville went up 32-28 on his 9-yard TD pass to Julius Thomas with 10:09 left, and the Titans scored twice in a 44-second span to take back the lead for good.

NFL videos

Mariota broke loose on third-and-7 with the Titans backed up at their own 13. The former Oregon quarterback weaved his way upfield with wide receiver Kendall Wright delivering the final block. Then when a snap sailed over Bortles’ head, Titans linebacker Wesley Woodyard recovered and ran 3 yards for a TD.