Later Awans, as a caste group, belonging to Ghaznavide armies, settled in Shamas Abad and the village became a small cantonment on the route used by the Ghaznavides from the north-west of India.