After returning to Hungary, he participated in the communist movement of Béla Kun and also joined the Party of Communists in Hungary.
Following the Soviet Republic's fall Rákosi fled Hungary on 2 August 1919 through the Austrian border, eventually to the Soviet Union where he worked as part of the Communist International, including representing it at the Livorno congress of the Italian Socialist Party [REF].