After Ranjit Singh's death in 1839, the empire was severely weakened by internal divisions and political mismanagement. This opportunity was used by the East India Company to launch the First and Second Anglo-Sikh Wars. The country was finally annexed and dissolved at the end of the Second Anglo-Sikh War in 1849 into separate princely states and the province of Punjab. Eventually, a Lieutenant Governorship was formed in Lahore as a direct representative of the Crown.