Kasur (Urdu and qəsuːr; also romanized as Qasūr; from pluralized Arabic word Qasr meaning "palaces" or "forts") is a city to south of Lahore, in the Pakistani province of Punjab. The city serves as the headquarters of Kasur District. Kasur is the 24th largest city of Pakistan by population. It is also known for being the burial place of the 17th-century Sufi-poet Bulleh Shah. It is farther west of the border with neighboring India, and bordered to Lahore, Sheikhupura, and the Okara District of Punjab Province. The city is an aggregation of 26 fortified hamlets overlooking the alluvial valleys of the Beas and Sutlej rivers. Kasur derives its name from the Arabic and Persian word qasur (قصور), meaning "palaces," or "forts." Hindu traditions claim that Kasur was founded by, and named for, Prince Kusha of the Ramayana, son of the Hindu deities Rama and Sita. According to that belief, the city was named Kashawar along with its neighbouring city, Lahore which was named Lahawar. Historical records reject an ancient founding of the city and dates it back to 1525, when it was found as a fortified settlement. Kasur region was an agricultural region with forests during the Indus Valley civilization. The Kasur region was ruled variously by the Maurya Empire, Indo-Greek kingdom, Kushan Empire, Gupta Empire, White Huns, Kushano-Hephthalites and Kabul Shahi kingdoms. The region is also said to have been visited by the Chinese pilgrim Xuanzang in 633 AD. Alexander Cunningham writes about his visit describing the place filled with tombs, mosques, and thickly covered with ruins. The city which is most commonly associated with Kasur was described as being situated somewhere on the right bank of the Beas (Sutlej) opposite to the city of Lahore. In 1005 CE, Sultan Mahmud of Ghazni, took over the region under the Ghaznavid dynasty. This led to the introduction of Islam in the Northern Punjab area, after being conquered. Sufi missionaries were sent to the region in order to preach Islam which made the Punjab region predominantly Muslim.