During the short-lived Hungarian Soviet Republic of 1919, Dohnányi was appointed Director of the Budapest Academy, but a few months later the new interim government replaced him with the prominent violinist Jenő Hubay after Dohnányi had refused to dismiss the pedagogue and composer Zoltán Kodály from the Academy for his supposedly leftist political position. However in 1920, with Admiral Horthy becoming Regent of Hungary, Dohnányi was named Music Director of the Budapest Philharmonic Orchestra and as such promoted the music of Béla Bartók, Zoltán Kodály, Leo Weiner and other contemporary Hungarian composers. That same 1920 season, he performed the complete piano works of Beethoven and recorded several of his works on the Ampico player-piano-roll apparatus. He gained renown as a great teacher. His pupils included Andor Földes, Mischa Levitzki, Ervin Nyiregyházi, Géza Anda, Annie Fischer, Edward Kilenyi, Bálint Vázsonyi, Sir Georg Solti, Istvan Kantor, Georges Cziffra and Ľudovít Rajter (conductor and Dohnányi's godson). In 1933 he organized the first "International Franz Liszt Piano Competition".