In 1023 Mahmud of Ghazni attacked and received a tribute from Kalinjar, Mughal emperor Babur became the only commander in history to have captured the fort in 1526 when his forces drove away Raja Hasan Khan Mewattpati. It was also the place where Sher Shah Suri met his death in 1545 when he was killed either in the fort or nearby on the grounds. In 1569 Akbar captured the fort and it was under Mughal rule until its capture by the Marathas. Kalinjar played a prominent part in history down to the time of the Revolt of 1857, when it was held by a small British garrison. Both the fort and the town, which stands at the foot of the hill, are of interest to the antiquary on account of the remains of temples, sculptures, inscriptions, and caves. In the early 18th century, the fort was captured by the Peshwa Bajirao after defeating the Mughal general Bangesh Khan of Allahabad. In order to stop the Mughals from entering Bundelkhand again, he established a Maratha light infantry huzurat of 5000 under the command of Sardar Ram Singh Bhatt, Yashwantrao Bhatt, Parashuram Bhau Bundela, Bhaskar Pandit, and Sheshrao Pant Bundela, all veterans of war and Maratha class one generals. In due course of time, the Marathas conquered the nearby territories and expanded to the Bengal frontiers. They inflicted a crushing defeat on Awadh ally Nawab of Rampur and Ala Vardi Khan. The fort was used to levy chauth to nearby territories like Benaras, Mirzapur, Pratapgarh, Kunda, and Bundela. Colonial period In 1803, the Peshwa was involved in direct skirmishes with the East India Company in which he was defeated. In the Treaty of Surji-Anjangaon, Peshwa Bajirao II ceded Bundelkhand to the East India Company after his defeat in the Second Anglo-Maratha war. The fort came under the management of the East India Company in 1805-06. The Old Bhatt royalty was expatriated and was granted separate sanads of Kirwi, Attra, Chitrakut Mathond, and Khurand. The fort was placed under the pre-Maratha constitution of Bundela - Jhijhotiya Chubes. However, during the first War of Independence in 1857, The Old Bhatta Aristocracy recaptured the fort driving Bundela back to Ajaygarh. In 1858, the British attacked the fort but the people at large resisted and fought a tough battle with Major Hugh Rose. A long drawn siege ensued in which almost 800 British and 3000 Indians