As soon as the prince of Majapáhit heard of this new establishment at Bintára, he directed Húsen to proceed thither and destroy it, unless the chief was willing to acknowledge the authority of Majapáhit. Húsen in consequence prevailed on Ráden Pátah to accompany him to Majapáhit, where he was recognised by his likeness to the prince, and permitted to return to Bintára with the title of Adipáti.

When Ráden Pátah quitted Majapáhit, instead of returning to Bintára he went to Ampel, and communicated to him the shame and rage which he felt on the discovery of his birth and a determination which he had made to destroy Majapáhit. The Súnan, however, moderated his anger, by telling him that while the prince was just and beloved, and he himself received such benefits from him, his religion did not admit of his making war against him, or in any way injuring him.

Ráden Pátah then returned to Bintára, taking with him his wife, but leaving with the Súnan his son, Ráden Abdala. Bintára now rose in consequence and prosperity, proselytes became numerous, and the population daily increased.

Shortly after the mosque had been commenced, intelligence was received of the severe illness of the Súnan Ampel, in consequence of which Ráden Pátah, together with all the chiefs and people who had embraced Mahomedanism, proceeded to Ampel, where, after they had attended him for a few days, he died, previously delivering into the hands of the Súnan Gíri a pusáka kris, which had been given to him by the prince of Majapáhit, and which he required of him never to transfer into unhallowed hands.

The prince of Majapáhit is represented as paying every honour to the deceased, and as having provided the usual feast on the occasion. After this event, Ráden Pátah returned to Bintára, whither eight missionaries, who had assumed the title of Súnan, viz. Súnan Bónang of Túban (son of Súnan Ampel), Súnan Undang of Kúdus, Súnan Gíri of Grésik, Súnan Agum (Mulána Jomadil Kobra of Chéribon), Sunan Káli Jenar, Sunan Káli Jága, Súnan Tanggung (of Tegal), and Súnan Drája of Sidayu, now proceeded to assist in the completion of the mosque. This mosque is still standing, and is of a shape different from those constructed at a later period, having, as it is asserted, eight pillars, to commemorate the circumstance of the eight religious men engaged in its construction. This event occurred in the year 1390.

It was now that Ráden Pátah, finding advisers who were perhaps less scrupulous than the revered Súnan Ampel, gave vent to his deep-rooted animosity against his father, and formed a league with the assembled missionaries to make war upon the pagan empire of Majapáhit. In consequence of this confederacy, which was joined by all those who had embraced the Mahomedan faith, with the exception of Húsen and his followers, who remained true to the prince, a numerous army was soon collected at Demák, where Ráden Pátah openly declared war.

Súnan Undang of Kúdus was appointed to the chief command, and under him the Mahomedan army marched towards Majapáhit; but owing to the dexterity of Húsen, who commanded the Majapáhit forces, a general engagement was avoided, and for four years the hostile army was kept at bay. The troops of Majapáhit at last dissatisfied with this uncertain state of affairs and constant harassing, called loudly for action, and in compliance with their wishes a decisive battle was fought near the Sidayu river, in which the Mahomedans were completely routed, and their chief, Súnan Undang, killed. Húsen is accused of not having followed up this victory to the utmost of his power, on account of his fraternal affection for Ráden Pátah. The remains of Súnan Undang were interred in the north side of the temple at Demák.

The prince of Majapáhit, after this success, again endeavoured to reduce Ráden Pátah to obedience by amicable means, and for that purpose invited him to Majapáhit. Pátah promised to comply as soon as he should recover from a distemper which then confined him. By this, and other excuses, which were only urged to gain time, he contrived to deceive the prince; and Bintára, with the other provinces, continuing to pay the usual tribute, his vengeance was disarmed.

Considerable depredations were now made by the Súnda people, who landing on the north coast proceeded by the river Losári into the interior of the country, as far as Bányumas and Dáyu Lúhur, which probably attracted the attention of Angka Wijáya, more than the immediate danger which threatened his empire from the members of his own family.

Ráden Pátah, in the meantime, was very active in making preparations for a fresh attack, and sent to Palémbang, for the double purpose of asking assistance from that state and of reconciling Aria Dámar to the part which he was now taking against Húsen.