The Battle of Anandpur (1685) was fought between the Sikhs and an allied force of rajas of the Hill States of the Sivalik range, specifically Kahlur, Kangra, and Guler.
[1][2] Raja Bhim Chand strongly objected to the Guru beating a nagara drum, as it was an action only sovereign rulers took, which is one of the reasons for the conflict.
[4] The Hill State allies attacked Anandpur in early 1685 but were repelled.
[5][6][7] The Guru left Anandpur for Paonta Sahib in the same year in April or May on the summon of Raja Medni Prakash of Nahan State.
[8][9][10] One of the reasons the Guru left Anandpur is due to the hostilities he faced with the Hill kings.