The increasing power of Guru Gobind Singh Ji, and his establishment of a military order (Khalsa) alarmed the Rajas of the Sivalik hills. After some failed attempts to check the Guru's power, the Rajas pleaded the Mughals and Emperor Aurangzeb to help them against the Guru.