In 1670 Kajoran introduced his son-in-law Trunajaya to the crown prince, who had recently been banished by the king due to a scandal, and the two forged a friendship that included a mutual dislike of Amangkurat.
Pada 1670, Kajoran memperkenalkan menantunya, Trunajaya kepada pangeran mahkota, yang baru saja diusir oleh raja karena skandal, dan keduanya menempa persahabatan yang meliputi ketidaksukaan bersama terhadap Amangkurat.