Sikhism achieved a series of military victories and created a Sikh Empire in 1799. The Sikh empire had its capital in Lahore, spread over almost comprising what is now northwestern Indian subcontinent. The Sikh Empire entered into a treaty with the colonial British powers, with each side recognizing Sutlej River as the line of control and agreeing not to invade the other side. Ranjit Singh's most lasting legacy was the restoration and expansion of the Harmandir Sahib, most revered Gurudwara of the Sikhs, with marble and gold, from which the popular name of the "Golden Temple" is derived. After the death
Akal Takht Harmandir Sahib was founded by sixth Sikh Guru, Guru Hargobind, as a symbol of political sovereignty and where spiritual and temporal concerns of the Sikh people could be addressed. Along with Baba Buddha and Bhai Gurdas, the sixth Sikh Guru built a 9 foot high concrete slab. When Guru Hargobind revealed the platform on 15 June 1606, he put on two swords: one indicated his spiritual authority ("piri") and the other, his temporal authority ("miri"). In the 18th century, Ahmed Shah Abdali and Massa Rangar led a series of attacks on the Akal Takht and Harmandir Sahib. Hari Singh Nalwa,