Maharajah Ranjit Singh made Lahore his capital and was able to expand the kingdom to the Khyber Pass and also included Jammu and Kashmir, while 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 ten years later. Capitalizing on the disarray surrounding the succession struggles after Ranjit Singh's death and only partially diminished by a war fought against the Sikhs on their eastern frontier, the British rode into Lahore in February 1846 and garrisoned their troops in the citadel. Two unstable years later, they were drawn into a second war with the Sikhs at the southern city of Multan when that city's governor, Mul Raj, encouraged his troops to rebel. After a series of closely fought battles, the Sikh army was finally defeated in the Battle of Gujrat, sixty miles north of Lahore. In March 1848, following the British victory, Dalip Singh, Ranjit Singh's teenage son and heir to the throne, was formally deposed in Lahore. The remaining Sikh regiments in the city were abruptly decommissioned and camped outside the city demanding severance pay. Within a year, the Punjab was formally annexed to the British Empire and military sappers had begun leveling Lahore's city wall.