Halevy served the Jewish Congregation of Hamadan, first in Iran and later in Jerusalem, as a Rabbi, a Judge and an educator. While in Hamadan, he held the position of a teacher in the Alliance Israélite Universelle, and later as its principal. Moreover, he was the Jewish congregation's civil leader and representative to the Municipality of Hamadan. As the spiritual shepherd of his people, he insisted on teaching everyone the Hebrew language, the respect of the Torah and the love of the homeland, Zion. Being a gifted writer, he published poetry books, essays and historical books, both in Hebrew and Persian, of the Jews of Iran in general and of Hamadan in particular.