Ali Masjid Fort (Pashto:علي مسجد فورټ; ) is situated on a high location within the Khyber Pass in Pakistan. It was first constructed under Dost Muhammad Khan. The fort is located beside Ali Masjid. The fort is located above the narrowest point of the pass. The fort has also been a location of a variety of different conflicts between Afghan and British forces during the 19th century.