After the death of Ali Adil Shah II in 1672 CE, Sikandar Adil Shah was placed on the throne of Bijapur in 1672 at four years of age. This weakened the kingdom and was ultimately annexed by Emperor Aurangzeb in 1686 CE.
Barani was a contemporary of Muhammad bin Tughlaq and Firuz Shah Tughlaq both. He wrote a number of renowned texts, such as the Fatwa-i-Jahandari, which elaborates on the principles to be followed by Muslim rulers to attain merit.