Bowe Bergdahl pleads guilty orig_00002116.jpg
Bowe Bergdahl pleads guilty orig_00002116.jpg
Now playing
00:51
Bowe Bergdahl avoids prison time
FU.S. Army Sgt. Robert Bowdrie "Bowe" Bergdahl, 31 of Hailey, Idaho, enters the the Ft. Bragg military courthouse for his sentencing hearing on October 25, 2017 in Ft. Bragg, North Carolina. Bergdahl pled guilty to desertion and misbehavior before the enemy stemming from his decision to leave his outpost in 2009, which landed him five years in Taliban captivity.
Sara D. Davis/Getty Images
FU.S. Army Sgt. Robert Bowdrie "Bowe" Bergdahl, 31 of Hailey, Idaho, enters the the Ft. Bragg military courthouse for his sentencing hearing on October 25, 2017 in Ft. Bragg, North Carolina. Bergdahl pled guilty to desertion and misbehavior before the enemy stemming from his decision to leave his outpost in 2009, which landed him five years in Taliban captivity.
Now playing
01:13
Dishonorable discharge, no prison for Bergdahl
newday dnt starr taliban bergdahl_00015709.jpg
Taliban Video
newday dnt starr taliban bergdahl_00015709.jpg
Now playing
02:35
See the 2014 video of Bergdahl, Taliban swap
sgt. bowe bergdahl classified documents eugene fidell intv_00011130.jpg
sgt. bowe bergdahl classified documents eugene fidell intv_00011130.jpg
Now playing
01:27
Bergdahl wins release of classified docs (2016)
nr Bergdahl Washington post journal entry_00011312.jpg
IntelCenter
nr Bergdahl Washington post journal entry_00011312.jpg
Now playing
01:28
Report: Bergdahl diagnosed with personality disorder
bowe bergdahl arraignment preview valencia pkg_00021619.jpg
bowe bergdahl arraignment preview valencia pkg_00021619.jpg
Now playing
01:14
Army addresses Bowe Bergdahl's arraignment
In this undated image provided by the U.S. Army, Sgt. Bowe Bergdahl poses in front of an American flag. U.S. officials say Bergdahl, the only American soldier held prisoner in Afghanistan, was exchanged for five Taliban commanders being held at Guantanamo Bay, Cuba, according to published reports. Bergdahl is in stable condition at a Berlin hospital, according to the reports. (Photo by U.S. Army via Getty Images)
U.S. Army/Getty Images
In this undated image provided by the U.S. Army, Sgt. Bowe Bergdahl poses in front of an American flag. U.S. officials say Bergdahl, the only American soldier held prisoner in Afghanistan, was exchanged for five Taliban commanders being held at Guantanamo Bay, Cuba, according to published reports. Bergdahl is in stable condition at a Berlin hospital, according to the reports. (Photo by U.S. Army via Getty Images)
Now playing
02:25
Will Bowe Bergdahl face jail time?
Now playing
02:07
Time is up for Bergdahl exchange prisoners
In this undated image provided by the U.S. Army, Sgt. Bowe Bergdahl poses in front of an American flag. U.S. officials say Bergdahl, the only American soldier held prisoner in Afghanistan, was exchanged for five Taliban commanders being held at Guantanamo Bay, Cuba, according to published reports. Bergdahl is in stable condition at a Berlin hospital, according to the reports. (Photo by U.S. Army via Getty Images)
U.S. Army/Getty Images
In this undated image provided by the U.S. Army, Sgt. Bowe Bergdahl poses in front of an American flag. U.S. officials say Bergdahl, the only American soldier held prisoner in Afghanistan, was exchanged for five Taliban commanders being held at Guantanamo Bay, Cuba, according to published reports. Bergdahl is in stable condition at a Berlin hospital, according to the reports. (Photo by U.S. Army via Getty Images)
Now playing
04:20
Bowe Bergdahl charged with desertion
orig The mountain of letters for Bowe Bergdahl_00001805.jpg
orig The mountain of letters for Bowe Bergdahl_00001805.jpg
Now playing
01:30
The mountain of letters for Bowe Bergdahl
ac360 bowe bergdahl ed lav _00000609.jpg
ac360 bowe bergdahl ed lav _00000609.jpg
Now playing
02:16
The recovery of Bowe Begdahl
exp point barbara star bergdahl _00015307.jpg
exp point barbara star bergdahl _00015307.jpg
Now playing
02:46
Who is Bowe Bergdahl?
nr foreman mythbusting bergdahl captivity_00012224.jpg
nr foreman mythbusting bergdahl captivity_00012224.jpg
Now playing
02:27
Bergdahl's captivity: Fact vs. fiction
bts bergdahl capitol hill ex roomate victims father_00022826.jpg
bts bergdahl capitol hill ex roomate victims father_00022826.jpg
Now playing
02:46
Sgt. Bergdahl's ex-comrade speaks out
This file image provided by IntelCenter on Wednesday Dec. 8, 2010 shows a frame grab from a video released by the Taliban containing footage of a man believed to be Sgt. Bowe Bergdahl, left.
IntelCenter/AP
This file image provided by IntelCenter on Wednesday Dec. 8, 2010 shows a frame grab from a video released by the Taliban containing footage of a man believed to be Sgt. Bowe Bergdahl, left.
Now playing
02:10
Now in U.S., Bergdahl's recovery begins
ac pkg kaye bergdahl letters_00003403.jpg
ac pkg kaye bergdahl letters_00003403.jpg
Now playing
02:40
Bergdahl letters from captivity released

Story highlights

Bergdahl said he deserted to try to report a critical problem in his command

He was captured by the Taliban hours after leaving his post

(CNN) —  

US Army Sgt. Bowe Bergdahl could spend the rest of his life behind bars after he pleaded guilty Monday to desertion and misbehavior before the enemy.

Bergdahl disappeared from his base in Afghanistan in June 2009 and was held in captivity by the Taliban until May 2014.

“I left my observation post on my own,” Bergdahl told a judge Monday. “I understand leaving was against the law.”

01:27 - Source: CNN
Bergdahl wins release of classified docs (2016)

The 31-year-old said he deserted from his outpost to try to reach the base from where he was dispatched. Bergdahl told the judge he wanted to report “a critical problem in my chain of command,” but did not specify what that problem was.

Who is Bowe Bergdahl?

There was no pre-trial agreement prior to Bergdahl’s guilty plea, both the government and defense said.

Bergdahl faces up to five years in prison for the desertion charge and up to life in prison for the charge of misbehavior before the enemy.

The judge, Army Col. Jeffery R. Nance, said Bergdahl’s sentencing hearing will begin October 23.

Torture after desertion

Hours after Bergdahl deserted, he was captured by the Taliban. During his captivity, the sergeant made “somewhere between a dozen and 15 escape attempts,” Bergdahl said during his hearing Monday.

He previously described the torture he endured, which included months chained to a bed and years either locked in a cage or chained on all fours.

After five years, the Taliban released Bergdahl in a prisoner swap for five detainees at Guantanamo Bay. Since then, he has been called both a traitor and a hero.

Celebrated at first, Bergdahl’s release raises more questions

In 2015, an Army Sanity Board evaluation said Bergdahl had schizotypal personality disorder. That information was included in the hundreds of pages of documents that Bergdahl’s defense team released on a website called The Bergdahl Docket.

Trump: Bergdahl ‘should be shot’

During the 2016 presidential campaign, Donald Trump said Bergdahl “should be shot” for walking off his post.

“In the good old days, he would have been executed,” Trump said.

After Trump became President, Bergdahl’s lawyers argued the judge should dismiss the charges because of Trump’s comments, claiming Trump violated Bergdahl’s due-process rights and saying it would not be possible for Bergdahl to get a fair trial.

Bowe Bergdahl: I wanted to be Jason Bourne

But a military judge ruled against dismissing charges. Bergdahl later chose to be tried by a military judge rather than a jury.

In an exclusive interview obtained by ABC last year, Bergdahl said he didn’t think he would be able to get a fair trial after Trump’s comments that he should be shot.

“We may as well go back to kangaroo courts and lynch mobs. They got what they wanted,” Bergdahl said. “People who are to the point of saying, ‘Yeah, just shoot him’ – you can never convince those people to change their minds.”

Retired Army Spc. Cody Full, a member of Bergdahl’s platoon in Af