Bijapur partnered with the Mughals in the extinction of Ahmednagar. Mohammed maintained friendly relations with Shah Jahan and made a peace treaty of 1636, after the extinction of Ahmednagar. By a farman of Shah Jahan, he got assurances for the end of Mughal aggression against Bijapur and due to his good relations with the Mughals, Shah Jahan formally recognized Muhammad’s sovereignty and bestowed upon him the title of Shah in 1648, the only ruler of Bijapur to receive such recognition from the Mughals.