Bolton, who served during Donald Trump's first presidential term, pleaded guilty in June as part of a deal with prosecutors. In addition to the prison sentence, he was also to pay a fine of $2.25 million.

He was accused of sending personal notes from his time working at the White House to family members through private accounts that did not belong to government institutions. The notes contained information classified as top secret.

Prosecutors had asked for Bolton to be sentenced to five years in prison, BBC writes, Dukagjini reports.

During Friday's hearing, Judge Theodore Chuang, who handed down the sentence, said Bolton “absolutely should have known better” than to mishandle classified information.

The judge also highlighted the fact that Bolton had quickly used secret information in a book after leaving office, calling this “problematic”.

“We cannot have two sets of rules, one for senior officials in Washington and one for everyone else,” Chuang said.

Before sentencing, Bolton expressed regret for his actions, acknowledging that he had made a serious mistake and broken the law.

“I would never intentionally harm the country I love so much. But I was wrong,” he said.

Bolton was dismissed from Trump's first administration in 2019. A year later, he published his memoir, The Room Where It Happened, in which he recounted his experience at the White House and described Trump as a president with limited knowledge of geopolitics.

The White House had filed a lawsuit to block the book's publication, arguing that it contained classified information and had not undergone proper review. However, the judge rejected the request, and the book was published a few days later.

After this, the U.S. Department of Justice began an investigation to determine whether Bolton had mishandled classified information by making some of it public in the book. He was also accused of transmitting secret materials from his time as National Security Advisor to two family members.

After the sentence was handed down, Trump called Bolton “a totally repulsive person” in a post on his Truth Social platform.

“He did not serve our country well and, when you don't do that, this is what should happen,” Trump wrote.