First campaign against the Portuguese in Malacca
In 1550, Queen Regent of Jepara, Kalinyamat, alarmed at the growth of Portuguese power in the region, sent 4,000 soldiers in 40 ships to meet Sultan Johor's request to free Malacca of the Europeans. Jepara troops later joined forces with Malay Guild which combined up to 200 warships. The combined forces attacked from the north to capture most of Malacca. However, the Portuguese, numbering 47 men, in retaliation, pushed back the invading forces. Malay Guild troops were repelled, while the Jepara troops remained on shore. While trying to evacuate the shores, the Jepara troops were ambushed by the Portuguese, thus suffering an estimated 2,000 casualties. The storm came crashing and stranded two Jepara vessels back to Malacca shore, and they fell prey to the Portuguese. Jepara soldiers who made it back to Java were not more than half of those who managed to leave Malacca.
Second campaign against the Portuguese in Malacca
In 1564, Ali Riayat Syah of Aceh asked for Demak's help to attack the Portuguese in Malacca. At that time the ruler of Demak was Arya Pangiri, the son of Sunan Prawata. The easily suspecting Pangiri killed the Acehnese envoy instead. Disappointed, Aceh still went on with their plan and attacked Malacca in 1567 without the help of Java. The attack failed.
In 1568, Jepara again attacked the Strait of Malacca, combined with the forces of the Aceh Sultanate led by Alauddin al-Kahar. The combined forces met success in plundering the goods of the Portuguese, though it was short-lived. After being beaten back by the Portuguese, the coalition forces retreated.
In 1573, the Sultan of Aceh asked for Queen Kalinyamat's help to attack Malacca once again. The Queen sent 300 ships containing 15,000 Jeparan soldiers. The Javanese forces were led by Admiral Ki Demat and just arrived in Malacca in October 1574. Yet when they arrived, the Aceh troops were beaten back by the Portuguese.
Jepara vessels opened fire directly to the fort of Malacca from the strait. The next day they landed and built some defences on the shore. Eventually, the Jeparan defense was penetrated by the Portuguese who set fire to around 30 Jeparan ships. Jeparan was shaken but still refused the peace talks. Meanwhile, six supply ships delivered by Queen Kalinyamat were captured by the Portuguese. The lack of logistics weakened the Jeparan troops and finally they decided to retreat. From the original numbers of troops sent by Queen Kalinyamat, only about a third of them survived to return to Java.
Despite being beaten several times, the Portuguese had great respect for Queen Kalinyamat, dubbing her "Rainha de Japara, Senhora poderosa e rica, de kranige Dame," meaning "Queen of Jepara, a rich and powerful woman, a brave woman".[2]