Several attempts to remove Malacca from Portuguese rule were made by the Sultan of Johor. A request sent to Java in 1550 resulted in Queen Kalinyamat, the regent of Jepara, sending 4,000 soldiers aboard 40 ships to meet the Johor sultan's request to take Malacca. The Jepara troops later joined forces with the Malay alliance and managed to assemble around 200 warships for the upcoming assault. The combined forces attacked from the north and captured most of Malacca, but the Portuguese managed to retaliate and force back the invading forces. The Malay alliance troops were thrown back to the sea, while the Jepara troops remained on shore. Only after their leaders were slain did the Jepara troops withdraw. The battle continued on the beach and in the sea resulting in more than 2,000 Jepara soldiers being killed. A storm stranded two Jepara ships on the shore of Malacca, and they fell prey to the Portuguese. Fewer than half of the Jepara soldiers managed to leave Malacca.