After the death of Gujarat Sultan Qutb-ud-dín Ahmad Shah II, the nobles raised his uncle Daud, son of Ahmad Shah I to the throne. He reigned over the Gujarat Sultanate from few days in 1458 CE.
Al Biruni was made court astrologer in Ghazni and he accompanied with Mahmud on his invasions on India. He lived for several years here and is considered to be first Indologist.