Military Wiki
Battle of Ali Masjid
Part of the Second Anglo-Afghan War
John Burke - aftermath of Ali Masjid.jpg
The interior of Ali Masjid, following the battle.
Date21 November 1878
LocationWestern end of the Khyber Pass, Afghanistan
Result British victory; Afghan retreat

United Kingdom British Empire

  •  British Raj
Flag of Afghanistan (1880–1901).svg Afghanistan
Commanders and leaders
Sir Samuel J. Browne[1] Ghulam Haider Khan
Mir Akhor
3,000 infantry,[2]
600 militia,[2]
200 cavalry[2]
3,000 Infantry,[3]
600 Khasadurs,[3]
320 Gunners,[3]
200 Cavalry[3]
Casualties and losses
16 killed,[2][4]
34 wounded[2]
300 captured[4]

The Battle of Ali Masjid, which took place on 21 November 1878, was the opening battle in the Second Anglo-Afghan War between the British forces, under Lieutenant-General Sir Samuel James Browne, and the Afghan forces, under Ghulam Haider Khan. The perceived offence of an Afghan general's refusal to allow a British envoy entrance to the country was used as an excuse to attack the fortress of Ali Masjid, as the opening battle in the war.[1] Despite numerous setbacks, including half the troops getting lost or delayed and missing the battle entirely, the British were lucky that the Afghans abandoned their position overnight.[4]


Imagine Helvellyn and Skiddaw, carded into the utmost possible ruggedness and steepness, planted facing each other, with just a quarter of a mile between, and drop into the interval a hill like the great pyramid, but steeper and twice as high, with the battlements of a fort on its flattened top; that is the first view of Ali Masjid.

——Spenser Wilkinson[5]

Following the 1837 Battle of Jamrud, Dost Muhammad Khan had built the fortress of Ali Masjid to assert his sovereignty over the Khyber region.[6] However, the fortress was captured only two years later by 11,000 troops commanded by Lt. Col. Claude Martin Wade on 26 July 1839.[7]

On 21 September, two months prior to the battle, British envoy General Neville Chamberlain had tried to enter Kabul, but had been ordered to withdraw by Faiz Muhammad, the commander of Ali Masjid. Britain issued an ultimatum demanding that Sher Ali apologise for the incident.[1]

On 23 October, a group of scouts was sent to reconnoitre the fortress, and assess Afghan defences in preparation for an invasion.[4]



I asked Colonel Newdigate and Colonel Turton if their men could go on, and they said they were quite exhausted. There was no water further on, and the whole of the baggage might have been carried off and the escort cut up if we had deserted it, and Tytler's baggage was all behind my Brigade.


The First Brigade had started training for the attack during the summer while they were stationed in the Miree Hills.[2]

At sunset on 20 November 1878 an estimated 1,700 men of the Second Brigade of the Peshawar Valley Field Force began their flank march to assist Browne in his attack on the Ali Masjid fort which guarded the Khyber pass.[2] The darkness created confusion and led to men and animals wandering off, it was 10 pm before the troops all reached Lahore settlement, which was only 5.5 km away from Ali Masjid.[2]

No one was to be allowed to enter any of the villages; and any marauding or maltreating of the villagers was to be most strictly prohibited and most severely punished, for it was expected that the Afridis in the pass would be either friendly or neutral, and it was therefore necessary that nothing should be done to irritate them against the troops ; whilst it was to be impressed on the men...the force was not acting against the people of the pass but against the troops of the Amir only.[3]

The First Brigade brought an approximated 1,900 men, most of whom were hampered by the puttees they wore in place of gaiters, which tightened around their legs due to the climate and caused leg cramps. This battalion did not reach the Lahore settlement until 6 am on 21 November, just as the first battalion was preparing to leave,[2] nevertheless they did their best to keep up. Colonel Jenkins led the scouts in this brigade.

Due to the heat, insufficient water supplies, and lack of shaded areas, Brigadier-General J. A. Tytler had to call for a halt at Pani Pal. While the men rested Tytler decided to check whether their left flank and rear were in danger.[2] As Jenkins led a party out to scout the hills, a reverberation filled the air which Jenkins claimed was the firing of heavy guns.[2] Tytler decided the best course of action would be if he stayed behind in Pani Pal with some men and Jenkins led the rest onward; that way Tytler was able to defend rear flank of Jenkins' troops should the need arise.[2]

Afghan defence[]

The Afghans had 24 cannon.[2] When Browne's troops were first spotted on the Shagai ridge there were already 8 cannon mounted to defend that, the southern face, of the fort; upon the arrival of troops on the Shagai ridge two more cannon were brought out to defend this side.[2] A single gun was placed to protect the fort against an attack from the direction of the Khyber River. Facing the Rotas Heights, five guns were set up by the men of Ali Masjid.[2]

Shooting begins[]

Afghan horsemen held the top of the Shagai ridge, so Browne ordered opening skirmish fire at 10 am, which led to a brief return of gunfire from the Afghans before they rode off the ridge, leading the 81st Foot, 14th Sikhs and a battery of mountain artillery to advance to within sight of Ali Masjid.[2][4][9] Major. H. B. Pearson led signallers to hold the Sarkai ridge and set up heliographs to communicate with the troops left in Jamrud.[2]

Artillery opened fire at noon, with sources disagreeing which side began the formal hostilities.[4][9] As the British rushed to bring their own heavy guns up to the ridge, MacPherson's troops opened fire from the right flank of the fortress. Within an hour, the British had both 40 lb and 9 lb cannon replacing their horse artillery, while the Afghans were underequipped with only round shot ammunition, rather than proper shells.[4][9] Around 2 pm, two British 40 lb shot hit and collapsed the central bastion of the fortress, silencing a "stubborn" Afghan 7 lb gun. This minor coup led the infantry to begin advancing on the fort. The Third Brigade approached from the right, while the Fourth Brigade approached from the slopes of the left. However, while the Third Brigade had come within "storming distance" of the fortress, operations were ordered suspended at nightfall to wait until the following morning's light.[9] This had a devastating effect on the Third Brigade, who tried to withdraw, but a number of troops did not receive the order and kept advancing without their comrades.[2]

The Afghan guns, abandoned during retreat.

"Whilst examining the bullet wound of [Birch], which was in the region of the heart, it was found that a locket containing a picture of his wife had been carried into the wound by the bullet."

Evatt's Recollections[2]

Captain J. G. Maclean took the right of the ridge, and Major Henry Holwell Birch the left with his band of Sikhs from the 27th Bengal Native Infantry which he commanded. They soon found themselves under heavy fire from the Afghans and Maclean fell injured with a shot through his shoulder. Birch and a few men went to carry him to safety but they all were shot and killed. Lt. Thomas Otho Fitzgerald took 15 men from the 27th Punjab and ran forward to help Birch, but was "twice wounded in the rush, was struck for the third time and killed outright", while four of his men were killed and six wounded.[2][10] In addition to Birch and Fitzgerald, Captain Maclean was wounded, as were four gunners and 20 sepoys.[9][11]

Finally, as the British were retreating for the night, Jenkins brought his scouts up to the top of the Turhai ridge.[2]

The Reuters story that ran in the Irish Times.

When the British arose in the morning to continue the battle, Lt. J. J. S. Chisholme from the 9th Lancers[Clarification needed] reported that the Afghans had deserted the fortress during the night.[2][12] The retreating Afghans left behind approximately 40 wounded men, 21 cannon and food seized upon the British.[9] Unbeknownst to Browne, 300 of the fleeing Afghans had accidentally stumbled upon the First Brigade, who were just arriving in position overnight, and were taken prisoner.[4] Browne had orders not to operate in the country to the south of the Khyber so he was not able to follow the retreating Afghans as they made their way through the Bazar Valley.[2]

Throughout the battle, the British fired 639 artillery rounds, and 11,250 rounds of small arms ammunition.[2] The bodies of the dead British troops were buried in a small cemetery which remains today as a reminder of the battle,[13] while the officers were carried back to Peshawar for burial.[14]


The British victory meant that the northern approach to Kabul was left virtually undefended by Afghan troops.[15] Browne was able to reach Dakkah with relative ease, and spent the winter camped safely in Jalalabad.[12]

Eight of the native troops fighting with the British were awarded the Indian Order of Merit.[16]

After the battle, Sher Ali still refused to ask the Russians for military assistance, despite their insistence that he should seek terms of surrender from the British.[17]

British Forces Order of Battle[]

Afghan troops at the location where Cavagnari was turned away.

British troops camped on the Shagai ridge

The sign at the location today, commemorating the battle.

Men of the Yorkshire Infantry, in the Fourth Brigade

Lieutenant-General Sir Samuel J. Browne (Overall Command of the Peshawar Valley Field Force)


  1. 1.0 1.1 1.2 Clements, Frank. "Conflict in Afghanistan: A Historical Encyclopedia", p. 285.
  2. 2.00 2.01 2.02 2.03 2.04 2.05 2.06 2.07 2.08 2.09 2.10 2.11 2.12 2.13 2.14 2.15 2.16 2.17 2.18 2.19 2.20 2.21 2.22 2.23 2.24 Hanna, Henry Bathurst. "The Second Afghan War, Its Causes, Its Conduct and Its Consequences", 1904.
  3. 3.0 3.1 3.2 3.3 3.4 MacGregor, Charles Metcalfe. "The Second Afghan War: Official Account Produced in the Intelligence Branch, Army Headquarters, India", 1908
  4. 4.0 4.1 4.2 4.3 4.4 4.5 4.6 4.7, Ali Masjid
  5. Wilkinson, Spenser; "Through the Khyber Pass", The Living Age, Volume 199, Issue 2577, 25 November 1893.
  6. Noelle, Christine. State and Tribe in Nineteenth Century Afghanistan, p. 168
  7. Riddick, John F. The History of British India, p. 43.
  8. Journal entry of Gen. MacPherson
  9. 9.0 9.1 9.2 9.3 9.4 9.5 New York Times, The War on the Afghans: Fort Ali-Musjid Captured, November 23, 1878
  10. Irish Times, "The Afghan War", November 25, 1878
  11. "No. 24672". 28 January 1879. 
  12. 12.0 12.1 Forbes, Archibald. The Afghan Wars
  13. NWFP, Khyber Kaleidoscope
  14. Journal of the United Service Institution of India, Volumes 19-20, 1890
  15. Afghanistan 1878-1880 The Build-Up to Conflict at
  16. Sikh History:The Sikh Regiment at
  17. Sinhai, Damodar Prasad. "India and Afghanistan, 1876", p. 183.
  18. 18.0 18.1 18.2 18.3 Hart's annual Army list, Militia list, and Imperial Yeomanry list, 1885

External links[]

Coordinates: 34°06′37″N 71°06′52″E / 34.1102°N 71.1144°E / 34.1102; 71.1144

This page uses Creative Commons Licensed content from Wikipedia (view authors).