The Los Angeles Rams lurked as a potential destination if the San Francisco 49ers had cut Jimmy Garoppolo this offseason, according to league sources.

Garoppolo remained with the Niners after the two sides agreed to a restructured contract.

The quarterback had the makings of a deal with the Rams in place had he been released.

The Niners didn't learn about the Rams' interest until after they agreed with Garoppolo on a one-year deal worth up to $16 million, sources said.

"It was going to be such a Rams move to make," a member of the 49ers organization told ESPN. "Sean McVay and Kevin Demoff would have been basking in it."