 The Arab historian and geographer Al-Masudi noted that by the mid 10th century, the city had become known as "Parashāwar".In 986–87 CE, Peshawar's first encounter with Muslim armies occurred when Sabuktigin invaded the area and fought the Hindu Shahis under their king, Anandpal.On 28 November 1001, Sabuktigin's son Mahmud Ghazni decisively defeated the army of Raja Jayapala, son of Anandpal, at the Battle of Peshawar, and established rule of the Ghaznavid Empire in the Peshawar region.