Traditional chronicle Babad Tanah Jawi alleges that Senopati, in his quest to become the supreme ruler of Java, had a spiritual alliance with Nyai Roro Kidul, the Javanese goddess of the Indian Ocean. The Babad, however derives Senopati's support from Muslim saint Sunan Kalijaga, who is considered to be one of the Wali Songo or 'Nine Apostles' of Islam in Java. Other than Nyi Roro Kidul, Senapati also contacted the ruler of Mount Merapi. He also built fortification and trained his soldiers.