At Barrackpore (now Barrackpur), near Calcutta on March 29, 1857, Pandey attacked and injured his British sergeant on the parade ground, and wounded an adjutant with a sword after shooting at him, but instead hitting the adjutant’s horse. He was however attacked by a native soldier called Shaikh Paltu who prevented him from killing the adjutant and later the sergant-major.
When General Joyce Hearsay ordered the Jemadar of the troops, a man called Ishari Pandey, to arrest him, the Jemadar refused, as did the rest of the company except Shaikh Paltu. Mangal then turned the gun against himself, and used his foot to try to pull the trigger to shoot himself.
He failed, was captured and sentenced to death along with the Jemadar. Mangal Pandey was hanged on April 8. His execution was scheduled for April 18, but he was summarily executed 10 days prior to the date, fearing the possibility of a larger-scale revolt. The Jemadar Ishari Pandey was executed on April 22. The whole regiment was dismissed "with disgrace" on 6th May as a collective punishment, because it was felt that they harboured ill-feelings against their superiors. Other sepoys of the Bengal Army thought this was a harsh punishment. Shaikh Paltu was promoted on the spot to the post of a Havaldar (native sergant) by General Hearsay.