John Bolton, a former national security adviser to Donald Trump, was sentenced to six months in federal prison on Friday for illegally retaining classified information while preparing a memoir.

US prosecutors had sought a five-year sentence for Bolton, 78, arguing that he endangered US national security. His lawyers asked US District Judge Theodore Chuang to impose probation instead, describing the mishandling of sensitive material as a temporary lapse in judgment without malicious intent.

In a letter to Chuang, who is presiding over the case, Bolton wrote that he was “profoundly sorry” for his actions. “Despite whatever positive things I may have done in the honorable calling of government service, this case will forever be attached to that record,” he wrote.

Bolton’s legal team cited letters of support from several prominent former officials, including former Vice President Mike Pence, whom Bolton served with during Trump’s first term. Bolton, wearing a maroon tie, sat beside his lawyers as the hearing began in federal court in Greenbelt, Maryland.

Trump responded to the sentence in a post on Truth Social, calling Bolton “a total sleazebag” and saying he had been sentenced to six months in prison for his “numerous improprieties.” “He did not serve our Country well and, when you don’t, this is what should happen,” Trump’s post read.

The case centers on personal diary entries Bolton created and shared with his wife and daughter. They detailed his daily work as national security adviser during Trump’s first term in 2018 and 2019. Prosecutors said the documents ran to more than 1,000 pages and included notes from intelligence briefings and meetings with senior government officials and foreign leaders.

Bolton used the notes to prepare his 2020 book, The Room Where It Happened, which described foreign policy debates in Trump’s first administration and portrayed Trump as uninformed on foreign affairs and unfit for office. The book contained no classified information and triggered a public rift between the two men.

Prosecutors alleged that hackers linked to Iran accessed an email account Bolton used to share some diary entries. In a sentencing memorandum, they said this put US secrets “directly in the hands of a significant geopolitical adversary who poses a relentless threat to US national security.”

Bolton was indicted in 2025 on 18 criminal counts and pleaded guilty in June to one charge of unlawful retention of national defense information. Under a plea agreement, he is to pay a $2.25 million fine and receive a prison sentence of between zero and 60 months.

Bolton is among several prominent critics and adversaries of Trump to be investigated or prosecuted during Trump’s second term. Unlike cases involving former FBI Director James Comey and New York Attorney General Letitia James, the investigation into Bolton began before Trump’s second term and was brought with the backing of career federal prosecutors. Bolton’s case also included an admission of wrongdoing, unlike other cases that grand juries rejected or federal judges blocked.

Bolton, a prominent advocate for an interventionist foreign policy, has served in multiple Republican administrations. His lawyers have portrayed the case as retribution for his criticism of Trump. They have also argued that the federal prison system may not be able to protect him from what they described as consistent and credible assassination threats from Iran.