Babur fought resistance from the Rajputs and captured Delhi and Agra , then conquered the Afghan chiefs in 1529 .
The cities of Delhi and Agra offered Babur a hero 's welcome , and considered him a liberator .