Khusrau Shah hatched a conspiracy against Mubarak Shah. Khusrau Khan was one of the favorite of Mubarak Shah. Khusrau Shah got him murdered in 1320 and himself ascended the throne.
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.