From 1924 to 1937, Mahler taught general and Jewish history in the Gymnasium and the Lyceum "Ascola" in Warsaw. He was active in the Warsaw branch of the Polish Historical Society. He identified with the Jewish workers' movement since his youth.