Guru Gobind Singh assumed the guruship in 1675 and to avoid battles with Sivalik Hill Rajas moved the guruship to Paunta. He built a large fort to protect the city and garrisoned an army to protect it. The Sikh community's growing power alarmed Sivalik Hill Rajas, who attempted to attack the city, but the Guru's forces routed them at the Battle of Bhangani.