Despite both being Sunni Muslims, Babur wanted Ibrahim's power and territory. Babur and his army of 24,000 men marched to the battlefield at Panipat armed with muskets and artillery. Ibrahim prepared for battle by gathering 100,000 man (well-armed but with no guns) and 1,000 elephants. Ibrahim was at a disadvantage because of his outmoded infantry and internecine rivalries. Even though he had more men, he had never fought in a war against gunpowder weapons and he did not know what to do strategically. Babur pressed his advantage from the start and Ibrahim perished on the battlefield in April 1526, along with 20,000 of his men.