Imam Khomeini's interest in Islamic studies surpassed the bounds of traditional subjects of Islamic law (Sharia), jurisprudence (Fiqh), and principles (Usul) and the like.
He was also keenly interested in philosophy and ethics.
Imam's teaching focused often on the overriding relevance of religion to practical social and political issues of the day.
He was the first Iranian cleric to try to refute the outspoken advocacy of secularism in the 1940s.
His now well-known book, Kashf-e Asrar (Discovery of Secrets) was a point by point refutation of Asrar-e Hezar Saleh (Secrets of a Thousand Years), a tract written by a disciple of Iran's leading anti-clerical historian, Ahmad Kasravi.
Also he went from Qom to Tehran to listen to Ayatollah Hassan Modarres —the leader of the opposition majority in Iran's parliament during 1920s.
Ruhollah Khomeini wrote Kashf al-Asrar to answer questions about the credibility of Islamic and Shia beliefs that originated in a pamphlet called The Thousand-Year Secrets, which was written by Ali Akbar Hakamizada, who had abandoned clerical studies at Qum seminary. In 1934, Hakamizada began publishing a modernist journal titled Humayun that advocated reformation in Islam and criticized Islamic superstition and traditionalism. In 1943, Hakimzada wrote The Thousand-Year Secrets and invited Shia scholars to explain what he called the sect's superstitious beliefs.
According to Khomeini's son Ahmad, one day when his father was going to Feyziyeh School, he encountered a group of seminary students discussing this pamphlet. Khomeini was worried the views of this pamphlet had infiltrated into the seminaries, and wrote Kashf al-Asrar to answer the pamphlet's questions. Kashf al-Asrar is the first book that expresses Khomeini's political views.
The book defends against Hakamizada's attacks against such Shia practices as the mourning of Muharram, ziyara, the recitation of prayers composed by the Imams, clerical fostering of superstitious beliefs to perpetuate their own power, belief in the intercession of Muhammad and his descendants and the lack of any explicit mention of Imamate in the Quran. Khomeini also attacks Wahhabism and its "idolatrous" devotions, Bahá'í scholar Mírzá Abu'l-Fadl and Shia scholar Shariat Sanglaji.
Kashf al-Asrar consists of six chapters, the ordering of which mirrors the division of content in The Thousand-Year Secrets:"Tawhid", "Imamah", "The Clergy", "Government", "Law", and "Hadith". In the first chapter, "Tawhid", Khomeini answers criticisms of Shia Islam by Bahá'í Faith. The second chapter contains Hadith of Position, Hadith of the two weighty things, and proof of the concept of Imamah by verses of the Quran.
The book's third, fourth, and fifth chapters include a discussion of government in the contemporary age.[4] At the end of The Thousand-Year Secret, Hakamizada asks some challenging questions and invites responses from readers. At the beginning of the third chapter of Kashf al-Asrar, Khomeini responds to five of the nine questions asked in The Thousand-Year Secrets
The Thousand-Year Secrets was supported by Ahmad Kasravi and Mohammad Hasan Shariat Sanglaji (d. 1944), the Wahhabi-influenced Shia scholar. Along with the publication of the pamphlet, objections were raised by scholars and seminary students. According to Ayatollah Hossein Badala and Bagheri, some scholars decided to respond to it. One of the responses was written by Mehdi Al-Khalissi; Kashf al-Asrar was another answer to the pamphlet; Ruhollah Khomeini taught philosophy at that time. Qom Seminary selected Kashf al-Asrar as answers to Hakimzada's questions in The Thousand-Year Secrets.
Imam Khomeini became a Marja in 1963, following the death of Grand Ayatollah Seyyed Hossein Borujerdi.
Imam has left several works on jurisprudence, Hadith, Quranic interpretation, philosophy and mysticism.