nobility had been confirmed, he was commissioned, at the proposal of Sebő Vukovics, to the Hungarian Nobiliary Royal Bodyguards (Magyar királyi nemesi testőrség), as a delegate of the Temes County, continuing his career in the Guards of Vienna, where he became friend with Artúr Görgei. He was transferred from Vienna to Pancsova, to the 12th Border Guard Infantry Regiment of the German-Banat border guards. He was here when he retired from the army in 1847 with the rank of artillery Lieutenant. Here he was sent as lieutenant to the Border Region Division, but soon he disarmed. In 1847 he thought to go to north India, in Lahore and to become an officer in the army of one of the Indian princes, but hearing the news about the revolution from Paris from February 1848 he decided to remain in Hungary. His military career in the Hungarian War of Independence Before becoming a general After the victory, on 15 March, of the Hungarian Revolution of 1848, Klapka volunteered in the Hungarian army, and he was conscripted as Captain. In May 1848 he was appointed by Batthyány Government with two Hungarian officers to go to Kolozsvár and in the Székely Land to find out if Transylvania wanted to reunite with Hungary, and to measure how many from the Székely border guard units could be sent to Hungary. On 13 June he was appointed as a Captain to the 16 Hungarian Battalion in Veszprém. Starting with August he joined the Hungarian military operations in Bácska (Southern Hungary) against the Serbian insurgents. On 25 September he was sent to be the temporary director of the Komárom fortress, called the Gibraltar of the Danube. During that time he prevented Wilhelm Mertz, the constable of the fortress, from delivering it in the hands of the Habsburgs, and played a role in forcing Mertz and the officers loyal to the Habsburgs, to leave Komárom, securing this very important stronghold for Hungary. From 16 October Klapka supervised also the fortification works from Pozsony. During that time, as the commander of the concentrated Hungarian national guards concentrated at Nagyszombat, he participated in the military operations against the Austrian troops led by Balthasar von Simunich which broke into Hungary from Moravia. On 13 November he was appointed chief of general staff of the Bánság army corps, and together with general Antal Vetter, he elaborated a plan to crush the Serbian insurgency,