Attock Fort was built at Attock Khurd during the reign of Akbar from 1581 to 1583 under the supervision of Khawaja Shamsuddin Khawafi to protect the passage of the River Indus. Attock was briefly captured on 28 April 1758 by the Maratha Empire and became the northern boundary of the Maratha Empire