John Bolton, former national security adviser to US President Donald Trump, was sentenced on Friday to six months in prison for illegally sending classified information to relatives. Prosecutors said the conduct posed a threat to national security.

Bolton, who later became a public critic of the Trump administration, pleaded guilty in June to illegally retaining national defense information at his home. The crime carries a maximum prison term of 10 years.

In a letter to the judge, Bolton said he was "profoundly sorry" for his actions. Trump called Bolton a "total sleazebag" and said he deserved the punishment. "Bolton did not serve our country well and, when you don't, this is what should happen," he wrote on social media.