After many years of civil war, Dost Mohammad Khan came to power and ruled Afghanistan from 1826 to 1863. During the first Anglo-Afghan War, Dost Mohammad Khan surrendered himself to the British, and was sent to India to live as a hostage. After the Afghans, led by his son, Sardar Mohammad Akbar Khan, defeated the British Army, Dost Mohammad Khan returned to Afghanistan and regained the throne. He then consolidated his power; he captured Kandahar in 1855, and Herat in 1863. A few days later after the capture of Herat, he died. He was born in 1793.