A US Marines sergeant has been discharged for criticising president Barack Obama on Facebook.
The corps said Sgt Gary Stein will be given an other-than-honourable discharge for violating Pentagon policy limiting speech of service members.
The San Diego-area Marine has served nearly 10 years in the Marines. He has said he was exercising his free-speech rights.
The discharge will mean he loses all benefits.
A federal judge previously denied a request to block military discharge proceedings against Stein, who called Obama an enemy on Facebook.
US District Judge Marilyn Huff ruled then that the military has the right to respond to Stein's online comments in a case that has called into question the Pentagon's policies regarding social media and the limits regarding the speech of active duty military personnel.
Attorney J Mark Brewer told Judge Huff the entire process violates the First Amendment to the US Constitution, which protects free speech and that federal courts have the right to uphold.
The judge disagreed, calling Stein's postings "truly troubling". Service members have had their speech limited since the Civil War, especially if their comments are believed to disrupt good order and discipline.
The judge pointed out Stein's March 1 comments on a Facebook page used by Marine Corps meteorologists in which the sergeant stated: "Screw Obama and I will not follow all orders from him."