After the death of
ʻAbdu'l-Bahá in 1921 and the succession of his eldest grandson,
Shoghi Effendi, Ayati’s efforts to obtain leadership in the Baháʼí community proved ineffective. After some time, in about 1924–1925, he decided to leave the Baháʼí community and became Muslim again. In about 1922–1923, Shoghi Effendi—the successor of ʻAbdu'l-Bahá—invited Ayati and several other prominent Baháʼís from various countries to
Haifa in order to consult with them about the formation of the
Universal House of Justice. Ayati arrived after the consultation session had ended, but found opportunities to converse with Shoghi Effendi about various subjects. After these consultations, Shoghi Effendi concluded that Baháʼí councils, known as
Spiritual Assemblies, first had to be established at the local and national levels, so that the ground could be prepared for the election of the Universal House of Justice, an international institution elected directly by the
National Spiritual Assemblies. Ayati was dissatisfied with this decision and persisted in his own view. A year later, he even hinted to Bahíyyih Khánum, the sister of ʻAbdu'l-Bahá, that if Shoghi Effendi did not act according to his opinion, he would stir up the Baháʼís of Iran against him. During this period, he continued writing protest letters and insisting on his views in Iran. His actions, which caused tension and division in the Baháʼí community, led the Spiritual Assembly of Tehran to seek guidance from Shoghi Effendi. Shoghi Effendi asked that institution to protect the Baháʼís from Ayati’s actions. After this, Ayati began writing insulting letters to Shoghi Effendi and threatened to destroy the Baháʼí Faith. After this, the Baháʼí community largely disregarded him. After separating from the Baháʼí Faith, he settled in Tehran and spent the rest of his life teaching in high school. In Tehran he wrote the three-volume
Kashf al-Hiyal, a polemical critique of the Baháʼí Faith. He then turned to literary research and, in about 1929–1930, founded a literary-critical journal called
Namakdan, which was published irregularly for several years. During this period, under his new pen name “Ayati”, he continued to compose poetry. In about 1932–1933 he moved to Yazd and began teaching in high schools, and eventually died in that city. == Works ==