An Oregon man who pleaded guilty to writing threats online to kill former President Barack Obama Barack Hussein ObamaGOP senator blocks Schumer resolution aimed at Biden probe as tensions run high D-Day for Trump: September 29 Obama says making a voting plan is part of 'how to quarantine successfully' MORE was sentenced on Friday to serve in federal prison, Oregon Live reported.

"Threats of violence directed at public officials and law enforcement are a serious matter,'' the U.S. attorney for Oregon, Billy J. Williams, said, according to the Oregonian. "Violent social media posts are every bit as serious as those made in other venues.''

Sixty-two year old John Martin Roos was sentenced to five years and three months in prison by U.S. District Judge Michael J. McShane.

ADVERTISEMENT

Roos admitted to making online threats against Obama, the former first lady, and the Obama daughters. Prosecutors said Roos also threatened to shoot FBI agents.

The FBI arrested Roos in 2016 after investigating him regarding threatening social media posts. An FBI agent discovered a loaded gun upon arresting Roos, who also had weapons, pipe bombs, and ammunition storied in his apartment.