was reinstated by the British, ruling during 1839–1842. Two of his sons also ruled for a brief period in 1842. Mahmud Shah (second reign, 1809–1818) Mahmud's second reign lasted 9 years, where he had further attempted to consolidate power, but was deposed by his brother in 1818, Mahmud's reign was also disputed in 1810, while he was campaigning, another one of Timur Shah Durrani's sons had seized the throne, but was defeated by Shah Mahmud in 1810. Abbas Mirza (1810) While Mahmud Shah was campaigning in 1810, another one of Timur Shah's sons placed himself in rule at Kabul. Abbas Mirza ruled for a short period of time before being defeated by Mahmud Shah once he returned from campaign. Sultan Ali Shah (1818–1819) Ali Shah was another son of Timur Shah. He seized power for a brief period in 1818–1819. in 1818 or 1819, He was strangled by his brother, Isma'il. Ayub Shah (1819–1823) Ayub Shah was another son of Timur Shah, who took control of the Durrani Empire after the death of Ali Shah Durrani. The Durrani Empire lost its control over Kashmir to the Sikh Empire in the Battle of Shopian in 1819. Ayub Shah was himself later deposed, and presumably killed in 1823. Durrani Herat (1793–1863) Shah Shuja and the First Anglo Afghan War (1839–1842) In the 19th century as a whole, Britain and Russia were interlocked in a battle for influence in South Asia. Russian advance was trudging through Central Asia, while the British were landing in the masses on the Indian subcontinent. The "Army of the Indus", full of both British and Indian infantrymen and cavalrymen, lined up on the border of the Durrani Empire, in Punjab. By March 1839, the British had already crossed into the Emirate of Kabul. Military The Durrani military was based on cavalry armed with flintlocks who performed hit-and-run attacks, combining new technology in firearms with Turco-Mongol tactics. The core of the Durrani army were the 10,000 sher-bacha (blunderbuss)-carrying mounted ghulams (slave-soldiers) of which a third were previously Shia soldiers (Qizilbash) of Nader Shah. Many others were also former troops of Nader Shah. The bulk of the army were Afghan irregular tribal cavalry armed with lance and broadsword. Mounted archers were still used but were uncommon due to the difficulty of training them. Infantry played a very small role in the Durrani army and, with the exception of light swivel