In 1918, while Khan was in the seventh standard, police raided his school and arrested the student Rajaram Bhartiya in relation to the Mainpuri Conspiracy, in which activists organised looting in Mainpuri to fund the publication of anti-colonial literature.[5] The arrest spurred Khan's engagement in revolutionary activities in the United Provinces.
Khan met Ram Prasad Bismil, a revolutionary who was closely involved in the Mainpuri Conspiracy, through a friend. He soon became closely tied to Bismil and joined him in activities related to non-cooperation, the Swaraj Party, and the Hindustan Republican Association.[5] Bismil and Khan were also both poets, with Khan writing Urdu poetry under the pseudonym Hasrat.[9][10]
Like others in the Hindustan Republican Association, Khan was strongly inspired by Lenin and the Bolshevik Revolution in Russia. He expressed beliefs in the liberation of the poor and the rejection of capitalist interests. He also spoke against religious communalism, identifying it as a British tool to control the Indian population and prevent Indian independence.[5]
The revolutionaries of the Hindustan Republican Association organised a meeting in Shahjahanpur on 8 August 1925 to determine how to raise funds for arms and ammunition. They decided to rob a train carrying government cash through Kakori. The HRA had previously executed similar train robberies, inspired by the Russian Bolshevik technique of using robbery to fund revolutionary operations.[11] He was originally against the Kakori train robbery, but eventually agreed to participate when others in the HRA expressed approval of the plan.[12]
Eventually, Khan decided to travel to Delhi to continue his revolutionary activities. While in Delhi, he met with a Pathan friend he had known in Shahjahanpur, who secretly reported his whereabouts to the police. On the morning of 7 December 1926, Khan was captured and arrested by the Delhi Police. He was detained in the District Jail at Faizabad and a case was filed against him.[8]
The trial of the Kakori train robbers was held for over a year in Lucknow and received significant interest from the public.[15] The HRA had released an official statement in 1925 claiming that they did not consider themselves terrorists and instead saw their revolutionary activities as a way to fight back against the violence of the colonial government. While in prison, Khan wrote a letter that expressed a similar sentiment, confirming that he did not aim to spread violence through the HRA but only hoped to ensure India's independence.[16]
Death and aftermath
The case for the Kakori dacoity was concluded by imposing the death sentence on Bismil, Khan, Lahiri, and Roshan. The others were given life sentences.[8][17][18] Khan was sentenced to death by hanging and executed on 19 December 1927 at the Faizabad Jail.[19] He is considered a martyr for the cause of India's independence.[8][20]
After the hangings of Khan, Bismil, Lahiri, and Roshan, the HRA changed their name to the Hindustan Socialist Republican Army and began officially espousing socialist and Marxist ideologies.[11]
In popular culture
The actions of Khan and his compatriots have been depicted in the Hindi film Rang De Basanti (2006), where his character is depicted by Kunal Kapoor. Chetanya Adib portrayed Khan in the Star Bharat television series Chandrashekhar. Mujahid-E-Azadi – Ashfaqullah Khan, an Indian television series that aired on DD Urdu in 2014, starred Gaurav Nanda in the title role.[21]