Dallas’ season-long streak of consecutive wins over the San Francisco 49ers was snapped Sunday when they lost to the Broncos in a nationally televised game at the Lincoln Memorial.

It was the ninth time Dallas has lost to San Francisco in Lincoln since the team moved to Levi’s Stadium in 1967.

The Cowboys have won just five games in their past 11 visits to San Jose since joining the Bay Area in 2006.

But the 49ers, who have won seven of their past nine meetings in the series, have outscored Dallas 28-21 in the fourth quarter and won the last five meetings.

San Jose quarterback Joe Staley threw for 295 yards and two touchdowns in his team’s victory.

“It’s a big win for our team,” said quarterback Garrett Grayson, who threw for 288 yards and three touchdowns.

“We’ve got to get this momentum going.”

Staley is the second rookie quarterback in NFL history to throw for 300 yards and run for 200.

He joined Drew Brees of New Orleans, who won the Super Bowl with the New Orleans Saints in 2006 and 2007.

The 49ers have won their last two games in the matchup in Lincoln.

The Broncos have won the past five meetings between the teams.

This is the third time in franchise history that the Cowboys have played at home.

They lost the last meeting to the Eagles in Denver in 2013.

Dallas went 10-2 in Lincoln before winning the season-opening game there by a score of 33-17 on Nov. 4.

It’s the first time the Broncos have beaten the Cowboys in Lincoln, with the Cowboys winning the last four matchups there.

The other three meetings between Dallas and the 49er are all decided by three points or less.

The Giants were the first team to lose a season-ending game in Lincoln when they were swept in 1972 by the 49ERS in the opener of the franchise’s longest playoff run.

The first meeting between the Cowboys and 49ers occurred in 1968, when the 49ER’s Tom Landry sacked Dak Prescott at the goal line and the Cowboys were shut out.