Maharaja Ranjit Singh made Lahore his capital and expanded the Sikh Empire to the Khyber Pass and also included Jammu and Kashmir in it. He was also successful in keeping the British from expanding across the River Sutlej for more than 40 years. After his death in 1839 the internecine fighting between the Sikhs and several rapid forfeitures of territory by his sons, along with the intrigues of the Dogras and two Anglo-Sikh wars, eventually led to British control of the Lahore Darbar in 1849.