and Tukojirao Holkar Bahadur were victorious in the battle and Attock was captured. But this conquest was short-lived as Ahmad Shah Durrani came in person to recapture Attock and checked the Maratha advance after destroying their forces at Panipat. After the decline of the Durrani state, the Sikhs invaded and occupied Attock District. The Sikh Kingdom (1799–1849) under Ranjit Singh (1780–1839) captured the fortress of Attock in 1813 from the Durrani Nawab.