LOS ANGELES _ A 14th straight loss and the No. 1 overall draft spot seemed destined for the 49ers on Saturday. But then came an improbable, fourth-quarter comeback and a 22-21 win over the host Los Angeles Rams.
Colin Kaepernick dove across the goal line for a go-ahead, two-point conversion with 31 seconds remaining to cap the 49ers' rally from a 14-point deficit in the final six minutes.
So ended the longest losing streak in 49ers history, and it perhaps ruined their shot at the No. 1 overall draft pick. The 49ers (2-13) had moved atop the draft order earlier in the day when the Cleveland Browns notched their first win of the season.
Saturday's win assures the 49ers of not producing the first 1-15 record in the franchise's 71-year history. The 2001 Carolina Panthers remain the only team in NFL history to go 1-15 after winning the season opener.
Unless they upset the NFC West-champion Seattle Seahawks on New Year's Day at Levi's Stadium, the 49ers will finish 2-14 for the fourth time, also doing so in 1978, 1979 and 2004; their 1963 team went 2-12.
Rookie Rashard Robinson's first career interception sealed the comeback, as he snagged Jared Goff's pass with 16 seconds remaining, touching off a massive celebration along the nearby 49ers sideline. Also remarkable about the 49ers' comeback was it came without Carlos Hyde, their offensive mainstay who sustained a left knee injury earlier in the fourth quarter.
Saturday's game set up as a typical 49ers defeat. They scored first for the 11th game this season, and although they blew that lead before the first quarter could end, they delivered a comeback win for the first time this season. Of course, their only other win came in the season opener against the Rams.
Kaepernick came through in the clutch, first scrambling for a 13-yard touchdown to pull the 49ers within 21-14 with 5:06 remaining. Kaepernick later found Rod Streater for a 10-yard touchdown pass with 31 seconds remaining.
First-year coach Chip Kelly elected to go for a two-point conversion, and Kaepernick ran around the right edge before leaping across the goal line for the go-ahead score.