Justin Tucker drilled a 49-yard field goal on the final play of the game , giving the Baltimore Ravens a 20-17 home victory for their eighth straight win.
Tucker’s successful kick was his second of the day and his 38th straight in the fourth quarter of games in his career.
The Ravens (10-2) covered 34 yards in 12 plays to kill the final 6:28 before the winning field goal. Lamar Jackson kept the drive alive with a 3-yard sneak on fourth-and-1 at Baltimore’s 44.
The winning drive began after the 49ers failed on a fourth-and-1 at the Baltimore 35, when Jimmy Garoppolo had a pass deflected at the line of scrimmage. San Francisco (10-2) lost for the second time in its last four games after an 8-0 start.