The Battle of Nirmohgarh was fought between Sikhs and the Mughal Empire in 1702.
After the Imperial army was defeated in the bloody Battle of Anandpur (1700). Aurangzeb (the Mughal Emperor of India) himself sent a fresh army under Wazir Khan against the Guru. Wazir Khan proceeded with a large number of troops with the backing and reinforcements provided by the hilly Rajas of the Sivalik Hills.
The battle took place outside Anandpur on the bank of river Satluj at Nirmohgarh. The Mughals attacked Guru Ji from one side and the hilly rajas attacked from other side. The fight continued fiercely for whole day and night and the combined forces were compelled to retreat.
The next morning, they attacked restarted and Guru Ji finding himself greatly outnumbered decided to retire from the place. The enemy troops pursued Guru Ji, resulting in another battle in which combined forces of Wazir Khan & the hilly Rajas were decisively defeated and the imperial army was forced to withdraw after two days of fighting.