In the 16th century, Jepara was an important port; in early 1513, its king, Yunnus (Pati Unus) led an attack against Portuguese Malacca. His force is said to have been made up of one hundred ships and 5000 men from Jepara and Palembang but was defeated. Between 1518 and 1521 he apparently ruled over Demak. The rule of Ratu ('Queen') Kalinyamat in the latter 16th century was, however, Jepara's most influential. Jepara again attacked Malacca in 1551 this time with Johor but was defeated, and in 1574 besieged Malacca for three months.