The Malegarh hillock at Lathu (came to be known later as Shahbajpur), the northern tip of Barlekha Upazila, was shaken up in November 1857 after Indian rebels revolted in Meerut. The soldiers of 34 Native Infantry in Chittagong revolted, looted the armoury and treasury and set army barracks on fire. These rebel soldiers, on their way to reach Manipur, pitched their tents at Malegarh. A force of 160 company soldiers under Major Byng, initially reached Protaphgarh (now in India) and then Malegarh on December 19, 1857. In that battle, Major Byng and four other company soldiers lost their lives. The mutineers retreated leaving behind twenty-six rebels including Major Sher Khan and Captain Shamsher Khan. For those who lived long enough to make it to Manipur, they were attacked not only by the company soldiers but also Kuki scouts. Ali Baksh of Chittagong, one of the rebels, was caught and charged of desertion, robbery and revolt. Gonjer Ali of Protapgarh and Zamindar Gous Ali Khan of nearby Prithimpasha were accused of helping the rebels.