Bābur succeeded his father in ruling the small principality of Fergana and inherited his ambition to conquer Samarkand. In his attempts, he lost both Samarkand and Fergana and had to head southward to reestablish himself in Kabul. From there he was able to unseat the Delhi sultanate and establish the Mughal dynasty in northern India.