structural:scholar_edition, stylistic:style_transfer
The Sikh Empire was a regional power based in the Punjab region of the Indian subcontinent. It existed from 1799, when Maharaja Ranjit Singh captured Lahore, to 1849, when it was defeated and conquered by the British East India Company in the Second Anglo-Sikh War. It was forged on the foundations of the Khalsa from a collection of autonomous misls. At its peak in the 19th century, the empire extended from Gilgit and Tibet in the north to the deserts of Sindh in the south and from the Khyber Pass in the west to the Sutlej in the east as far as Oudh. It was divided into four provinces: Lahore, which became the Sikh capital; Multan; Peshawar; and Kashmir from 1799 to 1849. Religiously diverse, with an estimated population of 4.5 million in 1831 (making it the 19th most populous country at the time), it was the last major region of the Indian subcontinent to be annexed by the British Empire.

The formation of the empire began with the capture of Lahore from its Durrani ruler, Zaman Shah Durrani. Ranjit Singh was proclaimed as Maharaja of the Punjab on 12 April 1801 (to coincide with Vaisakhi), creating a unified political state. Sahib Singh Bedi, a descendant of Guru Nanak, conducted the coronation. The formation of the empire was followed by the progressive expulsion of Afghans from Punjab by capitalizing off Afghan decline in the Afghan-Sikh Wars, and the unification of the separate Sikh misls. Ranjit Singh rose to power in a very short period, from a leader of a single misl to finally becoming the Maharaja of Punjab. He began to modernise his army, using the latest training as well as weapons and artillery. After the death of Maharaja Ranjit Singh, the empire was weakened by the British East India Company stoking internal divisions and political mismanagement. Finally, in 1849, the state was dissolved after the defeat in the Second Anglo-Sikh War.