Instability hindered Lahore's progress until the arrival of Maharaja Ranjit Singh, who in 1799 made Lahore the Sikhs' administrative capital for the next 50 years, ruling from the Old City's Lahore Fort.