Sporadic negotiations and video releases from the Taliban marked the four years and 11 months that US soldier Bowe Bergdahl was held captive. Here is a timeline leading up to Bergdahl’s release in Afghanistan:

2009

June 30: After only two months in the country, Bergdahl, then a 23-year-old private, disappears under unclear circumstances in eastern Afghanistan.

July 3: The Defence Department classifies Bergdahl as “missing-captured.”

July 18: The Taliban releases a video showing Bergdahl and his ID tags.

December: Two more videos of Bergdahl are released and in one of them, he says he is being treated humanely.

2010

April: Another video features Bergdahl calling for the release of Afghans held at the US detention facility in Guantanamo, Cuba. More videos will be released in late 2010 and May 2011.

2011

December: Reuters reports the US is considering transferring five Taliban members out of Guantanamo to push along peace talks. Among them is Mohammad Fazl, a senior Taliban commander, alleged to be responsible for the killing of thousands of Afghanistan’s minority Shiite Muslims from 1998 to 2001. Fazl was among those handed over to Qatar when Bergdahl was released.

2012

May: Bergdahl’s parents express their frustrations by breaking a yearlong silence to say he is at the centre of a proposed prisoner exchange with the Taliban.

August: Reports say the Obama administration sweetens its deal for Bergdahl’s freedom by offering to send five Taliban militants to Qatar before Bergdahl’s release. In the end, however, the releases were nearly simultaneous.

2013

June: Talks on Bergdahl and negotiating an end to the 12-year war in Afghanistan stall. The Afghanistan government is concerned that the protocol surrounding the Taliban’s newly opened office in Qatar, called the Political Office of the Islamic Emirate of Afghanistan, gives the appearance of a Taliban government-in-exile.

November: The Taliban shows interest in renewing talks regarding Taliban detainees held at Guantanamo.

2014

January: US officials meet with the Qatari government to ensure they are still willing to take in the Taliban detainees. Qatar officials also provide the US with a recent video of Bergdahl to indicate he is still alive.

Feb. 18: The White House says it is trying to obtain Bergdahl’s release but is not in “active negotiations” with the Taliban.

May 31: President Barack Obama announces Bergdahl is free as part of an agreement that US officials said was finalised in the previous week. After being handed over by the Taliban to US special forces, Bergdahl is taken for medical evaluation.