There were several reasons for Babur’s victory at Panipat.
1. Babur had used artillery which was unknown to the Indians.
2. His army was better trained than the Sultan’s army and his cavalry was far superior to the Indian cavalry.
3. He also took over Agra, which was made the capital. On April 27th, 1526 he declared himself “Emperor of Hindustan”.