The city of Amritsar was originally under the reign of a local clan known as Misls during the 18th century. In 1760, a local chieftain of the clan, Gujar Singh Bhangi, constructed the famous Bhagian da Qila. It was initially a mud fortress constructed to oversee the city and provide protection against the invaders. After nearly 49 years, the Misls lost their stronghold over the city, mainly due to constant battles with the Afghans.
It was during this time that Maharaja Ranjit Singh decided to invade the city and establish his reign by overthrowing Gujjar Singh in 1809. According to the historical tales, Ranjit Singh and the Bhangis confronted one another in a fierce battle where Ranjit Singh's fierce troops subdued the latter. Following this victory, he conquered the mud fortress of Bhaigan da Qila and renamed it after the tenth Sikh guru, Guru Govind Singh.
This is how the fortress got its name, Gobindgarh Fort, and became one of the critical military locations of Amritsar. Maharaja Ranjit Singh acquired it primarily to protect the entire city and Shri Harmandir Sahib, or the Golden Temple, against the attacks of Afghans from the northwestern frontier. Furthermore, its amicable location outside the walled city provided a perfect military lookout spot, allowing Ranjit Singh to establish an impenetrable and invincible protective barrier for Amritsar.