Babur's early relations with the Ottomans were poor because the
Ottoman Sultan Selim I provided
Babur's Uzbek rival
Ubaydullah Khan with powerful
matchlocks and
cannons. In 1507, when ordered to accept Selim I as his rightful
suzerain, Babur refused and gathered
Qizilbash servicemen in order to counter the forces of Ubaydullah Khan during the
Battle of Ghazdewan in 1512. In 1513, Selim I reconciled with Babur (due to shared
Sunni faith and fearing that he would join the
Safavids), dispatched
Ustad Ali Quli and Mustafa Rumi, and many other Ottoman Turks, in order to assist Babur in his conquests; this particular assistance proved to be the basis of future Mughal-Ottoman relations. ==References==