after becoming the independent sultan and bringing punjab under control, he marched towards the territory controlled by sultan ibrahim shah suri. ibrahim was defeated in a battle at farah, india near agra and sikandar took possession of both delhi and agra. while sikandar was busy with his struggle against ibrahim, humayun captured lahore in february 1555. another detachment of his forces captured dipalpur. next, the mughal army occupied jalandhar and their advanced division proceeded towards sirhind. sikandar sent a force of 30,000 horses but they were defeated by the mughal army in a battle at machhiwara and sirhind was occupied by the mughals. sikandar, then led an army of 80,000 horses himself and met the army at sirhind. on 22 june 1555 he was defeated by the mughal army and was compelled to retreat to the sivalik hills in northern punjab. the victorious mughals marched to delhi and occupied it.