San Francisco 49ers defensive end Nick Bosa got some revenge on Cleveland Browns star Baker Mayfield on Monday for what the quarterback did at the rookie’s alma mater when they were both in college.

Bosa sacked Mayfield twice in the game and after one of the tackles, he imitated planting a flag on the field, a clear shot at the quarterback who planted the Oklahoma Sooners’ flag after the team defeated the Ohio State Buckeyes more than two years ago.

VONTAZE BURFICT BEING SINGLED OUT BY NFL WITH SEASON-LONG SUSPENSION, RAIDERS LINEBACKER'S AGENT SAYS

“I think everybody knows what that was for,” Bosa told reporters after the game. “Just wanted to get payback. He had it coming.”

It was an easy night for the 49ers, who defeated the Browns 31-3.

San Francisco forced Mayfield to throw two interceptions and get sacked a total of four times. He was only 8-for-22 passing for 100 yards. It was the lowest passing-yard total of his career and the first time he failed to go without a passing touchdown since he subbed for Tyrod Taylor on a Thursday night game against the New York Jets last season.

CHRISTIAN MCCAFFREY SOMERSAULTS FOR TOUCHDOWN, SETS TONE FOR CAROLINA PANTHERS' WIN

On the other end, 49ers quarterback Jimmy Garoppolo passed for 181 yards and had two touchdown passes – one to George Kittle and the other to Matt Breida.

Breida also added 114 rushing yards and a rushing touchdown to his totals. Tevin Coleman scored a rushing touchdown as well.

CLICK HERE FOR THE ALL-NEW FOXBUSINESS.COM

The 49ers remain undefeated at 4-0 with the win. The Browns drop to 2-3.

The Associated Press contributed to this report.