As part of a peace treaty with Yusufzai Pashtuns, Babur married Bibi Mubarika, daughter of Yusufzai chief Shah Mansur, on 30 January 1519. Mubarika played an important role in the establishment of friendly relations of Yusufzai Pashtun chiefs with Babur, who later founded the Mughal Empire after defeating Pashtun Sultan Ibrahim Lodi at the Battle of Panipat in 1526.