According to Javanese legends dated from 16th century CE, the prince Panembahan Senopati aspired to establish a new kingdom Mataram Sultanate against Pajang overlordship. He performed ascetic acts through meditating on the beach of Parang Kusumo, south of his home in the town of Kota Gede. His meditation caused a disturbing, powerful supernatural phenomenon in the spiritual kingdom of Southern Sea. The Queen came to the beach to see who had caused this menace in her kingdom. Upon seeing the handsome prince, the queen immediately fell in love and asked the prince to stop his meditation. In return, the deity queen, who ruled spiritual realm of the southern seas, agreed to help Panembahan Senopati in his political effort to establish a new kingdom. In order to become the spiritual protector of the kingdom, the Queen asked to be held by the prince in hand of marriage, as the spiritual consort of Panembahan Senopati and all of his successors, the series of Mataram kings.