In 1897, during British rule, the Afridis attacked Landi Kotal and other posts in the Khyber Pass. The British counter-attacked with a force of 34,500 men under Sir William Lockhart, defeating the Afridis. 