Washington (CNN) Ikaika Erik Kang, a 35-year-old sergeant first class in the US Army, pleaded guilty Wednesday in federal court to four counts of attempting to provide material support to ISIS, according to the Department of Justice.

"Kang swore to defend the United States as a member of our military, but betrayed his country by swearing allegiance to ISIS and attempting to provide material support to the foreign terrorist organization," Assistant Attorney General for National Security John C. Demers announced Wednesday. "With today's plea, he will be held accountable for his crimes."

Kang reached a plea deal with the US and agreed to serve 25 years in prison, and could spend the rest of his life on supervised release.

"This is the first case in the State of Hawaii where someone was convicted of attempting to provide material support to a designated foreign terrorist organization," Special Agent in Charge Sean Kaul of the FBI's Honolulu Field Office said in a statement. "This should serve as reminder that even though we are 2,500 miles from the US Mainland, these crimes can and do happen everywhere."

According to a statement released by the Justice Department, Kang was sympathetic to ISIS by at least early 2016 and regularly watched ISIS propaganda videos. He made many statements in support of ISIS, expressed a desire to join the terrorist group and spoke about committing acts of violence.

Read More