The precise origins of the song are not entirely clear. It is believed to have been either written by Tulsidas (or based on his work Ramcharitmanas) or based on a 17th-century sung-prayer by the Marathi saint-poet Ramdas.
Anthony Parel writes in Gandhi's Philosophy and the Quest for Harmony,
[T]he origin of Ramdhun is shrouded in legend. According to the legend that he preferred it was composed by the great Hindu poet Tulsidas (1532-1623). While on a pilgrimage visiting the Vishnu temple of Dakore, Northern India, Tulsidas was moved to bargain with Vishnu. Until Vishnu revealed himself as Rama he would not bow his head in prayer. His wish was promptly granted: Rama appeared in his mind with his wife Sita, and three of their devotees. Hence, explains Gandhi, "Ramdhun, meaning intoxication with God [Ram]
There have been many versions of the Ramdhun, and the version that Mahatma Gandhi used had an "ecumenical flavour" to it. Gandhi modified the original bhajan, adding that the Ishwar of the Hindus and the Allah of the Muslims were one and the same, to make the song more secular-looking and to spread the message of reconciliation between Hindus and Muslims. The song was extensively used to project a secular and composite vision of Indian society — it was sung during the 1930 Salt March.
Pete Seeger included "Raghupati Raghava Raja Ram" on his album "Strangers and Cousins" (1964) and performed it in Episode 10 of his television series Rainbow Quest.
^Thapar, Romesh (1998). Seminar. Rarely do they bother to point to his innovation of adding Ishwar Allah Tero Naam to the Tulsidas Ram dhun Raghupati Raghav Raja Ram.
^"Purab aur Pachhim | Indian Cinema - The University of Iowa". indiancinema.sites.uiowa.edu. There is also Francis, a French hippie pal of Orphan, who sacrifices his life to save Bharat in a club brawl and then dies requesting, "Pour l'amour de Dieu....votre chanson" (i.e., the Gandhian anthem Raghupati Raghava Raja Ram), while cradled in Bharat and Orphan's arms in an amazing intercultural pieta.
^Indian Horizons. Indian Council for Cultural Relations. 2008. p. 55. ...band of boisterous hippies who energetically throw themselves into singing, "Raghupati Raghav Raja Ram." The re-working of one of Gandhi's favourite hymn is effected through wit, humour, irony and even irreverence.