After his conquest of Northern India, Muhammad of Ghazni detached it from India and ruled it from Ghazni. When Mahommed Ghori came in the field as a conqueror, he again attached it to India and ruled it from Lahore and then from Delhi. Hakim, the brother of Akbar, detached Kabul and Kandahar from Northern India. Akbar again attached it to Northern India. They were again detached by Nadirshah in 1738 and the whole of Northern India would have been severed from India had it not been for the check provided by the rise of the Sikhs.