The Afghan ruler was defeated in the battle of Ghaghra.
The battle of Ghaghra was fought between Babur and the Afghan ruler.