Pati
Pati lies in the northern coastal country of Java, east of Mount Muria. Pati and neighbouring Juwana stood near an estuary that once separated the mountain from the mainland. Their rulers competed with Demak and Jepara for the trade of the north coast, though the western ports ultimately gained the upper hand. After Demak's power broke apart in the sixteenth century, the ruler of Pajang granted Pati to his captain Ki Panjawi. His successors, remembered as the Pragolas, ruled a principality whose ties with the rising house of Mataram were at first close. As Mataram's ambitions grew, those relations deteriorated, and Pati became involved in the struggles through which the inland kingdom sought control of the coastal states.