János Libényi was born in 1831 in Csákvár in Hungary, the son of a master tailor, and learned the tailor's trade himself. During the revolution of 1848/49 he worked as a journeyman for a military tailor of the Hungarian Honvéd army in Arad. In October 1849 he witnessed there the execution of 13 generals and leaders of the revolutionary army, the "Martyrs of Arad". In 1850 he lived in Buda, and in the spring of 1851 he went to Vienna. There he first found lodgings at the Spittelberg and at the end of 1852 in the Leopoldstadt, and worked for several master tailors.
On 18 February 1853, shortly after noon, he attacked Emperor Franz Joseph, then 22 years old, on the bastion near the Kärntnertor. Libényi stabbed at him with a kitchen knife, and the emperor was only slightly wounded on the back of the head. The emperor's aide-de-camp Count Maximilian O'Donell overpowered the attacker, and the butcher Joseph Ettenreich, who happened to be there, held him until the police arrived. As his motive Libényi gave his anger at the political conditions in Hungary and the many arrests and executions after the revolution was put down. He named no accomplices. Five days after the deed he was sentenced to death by hanging for high treason under martial law and was executed on 26 February 1853 at the Spinnerin am Kreuz. The Simmeringer Haide is often wrongly given as the place of execution, because of a mocking song about a tailor that already comes from a Nestroy play of 1828 and was only reworded.
The government suspected a larger plot of Hungarian and Italian conspirators, which could not be confirmed. Even so there was a wave of arrests in Hungary and Austria, and several of Libényi's friends were convicted of high treason. In gratitude for the emperor's rescue, Archduke Ferdinand Maximilian appealed for donations. The Votivkirche was built with the money, to plans by Heinrich von Ferstel.
