 Mughal rule in the area was tenuous, as Mughal suzerainty was only firmly exercised in the Peshawar valley, while the neighbouring valley of Swat was under Mughal rule only during the reign of Akbar.In July 1526, Emperor Babur captured Peshawar from Daulat Khan Lodi.During Babur's rule, the city was known as "Begram", and he rebuilt the city's fort.