The Turks were successful in invading India because the regional kingdoms of India were busy in fighting among themselves leaving the country's borders unprotected. This gave the Turks a chance to attack the country. Mahmud of Gazhni was the first ruler to attack the country in the 11th and 12th century.