As part of a peace treaty with Yusufzai Afghans, 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 First Battle of Panipat in 1526. One of Mubarika's brothers, Mir Jamal Yusufzai, accompanied Babur to India in 1525 and later held high posts under Mughal emperors Humayun and Akbar.