The northwestern frontier areas were annexed to India by the British after the Second Sikh War (1848–49). The territories thenceforth formed a part of Punjab until the province, then known as North-West Frontier Province, was created in 1901 from the north-western districts of the Punjab Province.