In an invasion of the Kashmir valley (1015), Mahmud of Ghazni plundered the valley, took many prisoners and carried out conversions to Islam. In his later campaigns, in Mathura, Baran and Kanauj, again, many conversions took place. Those soldiers who surrendered to him were converted to Islam. In Baran (Bulandshahr) alone 10,000 persons were converted to Islam including the king. Tarikh-i-Yamini, Rausat-us-Safa and Tarikh-i-Ferishtah speak of construction of mosques and schools and appointment of preachers and teachers by Mahmud and his successor Masud. Wherever Mahmud went, he insisted on the people to convert to Islam. The raids by Muhammad Ghori and his generals brought in thousands of slaves in the late 12th century, most of whom were compelled to convert as one of the preconditions of their freedom. Sikandar Butshikan (1394-1417) demolished Hindu temples and forcefully converted Hindus.