Kúda Laléan with his followers then proceeded westward, as far as Gíling Wési, which was situated in the southern provinces among the mountains of Chidámar, a district of the modern province of Sukápura, and in the fabulous and mythological accounts supposed to have been the ancient capital of Wátu Gúnung. Finding two brass cannon in the neighbourhood, he considered them as the signal for the foundation of his new capital, and built a city and kráton on the spot, to which he gave the name of Pajajáran, where, assuming the sovereignty of the country, he was acknowledged under the title of Browijáya Máisa Tandráman.

This prince was a great promoter of agriculture, and encouraged the common people in the labours of cultivation by his personal example. He was the first who introduced the rice husbandry into the western provinces, and trained the buffalo to the yoke, from which circumstance he is called Maisa, and his descendants Múnding, both signifying a buffalo, the former in the Javan and the latter in the Súnda language. According to the tradition of the Súndas, the wild buffaloes came from the woods of their own accord during the reign of this chief.

This prince had two sons, the elder of whom, not contented to remain at home, engaged in foreign commerce and went beyond sea; and the younger succeeded his father in the year 1112, under the title of Prábu Múnding Sári.

It was seven years before he was enabled permanently to establish his authority; and soon after he had done so, his elder brother returned, who having resided in India and having become a convert to the Mahomedan faith, is known by the title of Háji Púrwa. He was accompanied by an Arab from the country of Koúje, who was descended from Sáyed Abás, and attempted in vain to convert his brother and family to the same faith. The troubles which were occasioned by their intrigues, and the endeavours which they used to effect their purpose, and which are allegorically described by the rapid growth and destructive effects of the lagóndi plant, were such as led to the removal of the capital further westward. In this new site it still retained the name of Pajajáran, being situated in the district of Bógor and in the vicinity of the modern Buitenzorg, the country residence of the European governor of the colony.

Háji Púrwa being unsuccessful in his attempts, and fearing the rage of the common people, quitted this part of the country, and is believed to have found an asylum in Chéribon, then an uninhabited wilderness.

This is the first mention of the Mahomedan religion on Java.

The next chief of Pajajáran was Múnding Wáng'i, who succeeded to the government about the year 1179. He had four legitimate children; the eldest a daughter, who refusing to be married was banished to the southern coast, where her spirit is still invoked, under the title of Ratu Kidul; the second, also a daughter, was born white and diseased, and was in consequence sent to an island off Jakatra (named from this circumstance Púlu Pútri), from whence she is said to have been carried away by the white men, who according to the Javan writers traded to the country about this period; the third a son, named Aria Babáng'a, who was appointed Rája of Gálu; and the fourth Raden Tandúran, who was destined to be his successor in the government. He had also a son by a concubine; but in consequence of the declaration of a devotee, who had been unjustly executed by Múnding Wáng'i, that his death would be avenged whenever the prince should have a child so born, he was desirous of destroying him in his infancy, but not being able, on account of the extreme beauty of the child, to bring himself to kill it with his own hands, he enclosed it in a box, and caused it to be thrown by one of his Mántris into the river Kráwang. The box being carried down the stream was discovered by a fisherman, who brought up the child as his own, until he arrived at twelve years of age. Finding him then to possess extraordinary abilities, he carried him to Pajajáran for further instruction, and placed him under the charge of his brother, who was skilled in the working of iron and steel. To the boy he gave the name of Baniák Wédi.

The youth soon excelled in the manufacture of all kinds of iron-work, and in the wild tradition of the country, he is said to have fashioned the red hot iron with his fingers. In a short time he was made chief of the Pándi, or ironsmiths, and admitted to the familiar intercourse of his father, Múnding Wang'i. Having constructed an iron chamber or cage, which particularly attracted the attention of the prince, he succeeded in persuading him to sleep in it, when closing the door, he, according to some accounts, burned him alive; or, according to others, caused him to be thrown into the South Sea at Kándang Wési, thus fulfilling the prophecy of the devotee.

Baniák Wédi now assumed the government, declaring who he was; but being opposed by his brother, Tandúran, who had been destined to succeed his father, it was some time before his authority was acknowledged. At length defeating his brother in a general engagement, the latter escaped with only three followers, and Baniák Wédi was declared sovereign, under the title of Browijáya Chióng Wanára.

Ráden Tandúran arriving at the river Gúntung, took refuge at the house of a widow, and afterwards meeting with his sister, who was performing a penance on the mountain Chérmai (the mountain of Chéribon), he was encouraged by her to proceed further east, following the course of a bird which she desired that he would let loose for the purpose, till he reached the district of Wirasába. Here he observed a plant, called the mája, entwined round a tree. He wished to eat of the fruit, but finding it extremely bitter threw it away, and asked one of his followers, Kiái Wíra, the reason of its bitterness. "I have heard," replied Kiái Wíra, "that it was here your forefathers fought in the war Bráta Yúdha." On which the prince said, "Then let us stop here and establish our kingdom, and let us call it Majapáhit" This was in the Javan year 1221.