The Imperial complex was abandoned in 1585, shortly after its completion, due to the exhaustion of the small, spring-fed lake that supplied the city with water, and its proximity with the Rajputana, with which the Mughal Empire was often at war. Thus the capital was shifted to Lahore so that Akbar could have a base in the less stable part of the empire, before moving back to Agra in 1598, where he had begun his reign as he shifted his focus to Deccan. In fact, he never returned to the city except for a brief period in 1601.