In 1519, Babur's aid was invoked by the Gigianis against the Umr Khel Dilazaks. Both were Pashtun tribes, and Babur's victory at Panipat in 1526 gave him control of the province. On his death in 1530 Mirza Kamran became a feudatory of Kabul. By his aid the Ghworia Khels overthrew the Dilazaks who were loyal to Humayun, and thus obtained control over Peshawar; but about 1550 Gajju Khan, at the head of a Grand Confederation of the Khakhay Khels, defeated the Ghworia Khels at Shaikh Tapur. Humayun at this point had overthrown Kamran, and entered Peshawar; ultimately leaving a garrison there.