In 1512, Samudra Pasai fell to the Portuguese, this made Pati Unus' task as Commander of the Islamic Fleet of Java even more urgent, and had to be carried out immediately.
In January 1513, Pati Unus' fleet reached Malacca, carrying about 100 ships with 5,000 Javanese soldiers from Jepara and Palembang.
He had a thousand soldiers on board, and His Majesty can trust me... that it was a very remarkable thing to see, because the nearby Anunciada didn't look like a ship at all.
It took three years to build, His Majesty may have heard the story in Malacca about Pati Unus, who made this fleet to become the king of Malacca.In 1521, all 375 ships had been completed.
As Pati Unus's ship was about to lower the boat to dock on the beach, it was struck by a cannonball, and he died as a result of the attack.
The Javanese joint forces, who had also suffered heavy casualties, decided to retreat under the leadership of Raden Hidayat, the second in command after the death of Pati Unus.
The failure of the second expedition to Malacca was partly due to internal factors, particularly issues of harmony among the sultanates of Indonesia.