 The name Giyanti was taken from the location of the signing of the agreement, namely in Giyanti Village (Dutch spelling) which is now located in Hamlet Kerten, Jantiharjo Village, southeast of Karanganyar, Central Java.The treaty was a result of a succession war in 1749–57.Pakubuwono II, king of Mataram, had backed a Chinese rebellion against the Dutch.