Mahmud Khan maintained close and friendly relations with Dughlat Amir Muhammad Husain Mirza and gave his sister Khub Nigar Khanim in marriage to him in 1490, contracting an alliance.
Their son was Mirza Muhammad Haidar Dughlat, famous historian and future ruler of Kashmir, born in Tashkent in 1500.
Having failed to take Transoxiana himself, Mahmud Khan decided to support Muhammad Shaybani, whose forces sharply increased from 3,000 to 50,000.
With Muhammad Shaybani threatening Mahmud Khan, Ahmad Alaq came from the east and the two brothers advanced against the Uzbeks.
Here he lived a difficult life for five years, before deciding to present himself before Muhammad Shaybani, in the hope that he would show some favor to him.