Correct Option: A
The first significant intrusion of Islam into India was led by Mahmud of Ghazni. In 1017, Mahmud of Ghazni took Rey. Most scholars, including al-Biruni, were taken to Ghazna, the capital of the Ghaznavid dynasty. Biruni was made court astrologer and accompanied Mahmud on his invasions into India, living there for a few years. Biruni became acquainted with all things related to India. He may even have learned some Sanskrit. During this time he wrote the Kitab ta’rikh al-Hind, finishing it around 1030.