On 13 November 2007 militants of the Tehreek-e-Nafaz-e-Shariat-e-Mohammadi ("Movement for the Enforcement of Sharia") from neighbouring Swat were reported to have captured Alpuri district headquarters. This seems to have been part of a general push into Shangla District. The local police fled without resisting the advancing militant force which, in addition to local militants, also included Uzbek, Tajik and Chechen volunteers.
The militants vacated the town again on November 22/23, with government troops approaching. Fighting in Matta and Kabal areas of Swat and parts of Malakand continued, and the Alpuri area was by and large cut off from the outside. The militants' offensive was so unexpected that residents in Shangla were reporting food shortages, as they had no time to stock up on supplies.
<gallery>File:Alpurai shangla.jpg|A view of AlpuariFile:Lilowni shangla valley.jpg|A view of Lilownai near Alpuari</gallery>