Kun fought with the Austro-Hungarian Army in World War I, and was captured and made a prisoner of war in 1916 by the Imperial Russian Army. He was sent to a prisoner of war camp in the Ural Mountains, where he was exposed to Communism. The Russian Revolution in March 1917 and the subsequent Bolshevik coup the following November not only set him free, but provided him with unforeseen opportunities.