in the midst of mangkubumi rebellion in 1749, pakubuwana ii fell ill and called van hohendorff, his trusted friend who saved his life during the fall of kartasura in 1742. he asked hohendorff to assume control over the kingdom. hohendorff was naturally surprised and refused, thinking that he would be made king of mataram, but when the king insisted on it, he asked his sick friend to confirm it in writing. on 11 december 1749, pakubuwana ii signed an agreement in which the "sovereignty" of mataram was given to voc.