The Battle of Attock was fought on September 1787 between the Sikh Army and Afghan forces led by Bakshi Madad Khan as part of the Afghan–Sikh Wars.
In the previous campaign, which took place in December 1785, Timur entered the lands of India to meet the Mughal emperor Shah Alam II, who had been inviting him.
[1][2][3][4] The Rajput princes had been constantly appealing to Timur for assistance against Mahadji Sindhia.
After multiple requests from Maharaja Bhakt Singh, in September 1787 Timur Shah made Bakshi Madad Khan the commander of 15,000 horses, 5,000 troops and 1,700 camel–riders.
Bakshi decided to not cross the Indus River and marched along the western banks.