Four bazaars were laid in each of the cardinal directions, with all four converging in the town's central "Chowgalla". The rebuilt city contained a large bazaar for Afghan traders, and the city prospered from trade via the Gomal Pass. An eight-foot mud wall with nine gates was built around the city during this time as well, some of which such as the "Kaneran Wala" and "Sakki" survive until today. All existing buildings date from no earlier than the 19th century. Khan remained under Sadozai rule from the nearby town of Mankera until it was annexed by Nau Nihal Singh of the Sikh Empire in 1836. Diwan Lakhi Mal appointed the city's "Kardar" ruler, though the Nawabs of the city from the Durrani order were allowed to maintain their title and some income. The city suffered under punitive taxes that lead to frequent complaints in the Sikh "Darbar" at Lahore, resulting in several changes of "Kardar". The city was annexed by the British in 1849 following their conquest of Punjab that resulted in the defeat of the Sikhs as the Battle of Gujrat. NWFP province was made out of Punjab province in 1920. Khan was made part of the NWFP, now known as KPK province. Khan's first deputy commissioner under British Indian Empire was General Van Cortland, who arrived in February 1848, before departing later that year to quell a revolt in nearby Multan. Following the defeat of rebels at Multan, Lieutenant Butler was made the next deputy commissioner of D. I. Khan and Bannu. Under his rule, the city's infrastructure and colonial administration system were established in which top posts were exclusively occupied by the British. The city was on the edge of the Tribal Areas — lands that were frequently in rebellion against British Indian Empire. The town did not rise up in revolt against British Indian Empire during the 1857 Sepoy Mutiny. In 1861, D. I. Khan was made into the Divisional Capital of the new Dera Ismail Khan Division: analogous to a British county. The municipality was constituted in 1867, while the Dera Ismail Khan Cantonment was established in 1894. The military cantonment area, which lies southeast of the town, has an area of , excluding the portion known as Fort Akalgarh on the northwest side. The Derajat Brigade had its winter headquarters at Dera Ismail Khan, and the garrison consisted of a mountain battery, a regiment of Native cavalry, and three regiments of Native infantry.