The Yoga-samgrama, composed in 1645 and containing 2319 ovis (poems), is his magnum opus. The central theme of this philosophical work is the soul's struggle to realize and experience God. It adopts a similar metaphor from the Dnyaneshwari by the saint-poet Dnyaneshwar (1275-1296), in which the atman (soul) is the warrior riding the horse of the Mind and battles the armies of Ego and other passions in its quest to attain glory as Brahman (Supreme Reality). Sheikh Muhammad cites examples from the Hindu scriptures such as the Puranas and other philosophical treatises to convey his ideas. The Yoga-samgrama has references to the Hindu gods Rama, Krishna (both forms of Vishnu), Vishnu, and Shiva. Each of the eighteen chapters of the treatise begins with a prayer to Ganesha, the god of beginnings, who is invoked at the start of a book in keeping with Hindu tradition. However, Sheik Muhammad's writings reveal his monotheistic beliefs, which are rooted in Islam. He describes Hindu gods as formless (Nirakari), unmanifest (Avyakta), without form or qualities (Nirguna), and invisible (alaksa) (see Hindu views on monotheism). Sheikh Muhammad preaches the Oneness of God: